Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc

Issue 10825179: Disable the prefetching trial during the CloudPrintPolicyFlag test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/prerender/prerender_field_trial.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "base/test/test_timeouts.h" 9 #include "base/test/test_timeouts.h"
10 #include "chrome/common/chrome_notification_types.h" 10 #include "chrome/common/chrome_notification_types.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 TestTimeouts::action_timeout()); 51 TestTimeouts::action_timeout());
52 52
53 EXPECT_TRUE(exited); 53 EXPECT_TRUE(exited);
54 EXPECT_EQ(chrome::RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED, exit_code); 54 EXPECT_EQ(chrome::RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED, exit_code);
55 base::CloseProcessHandle(handle); 55 base::CloseProcessHandle(handle);
56 } 56 }
57 57
58 IN_PROC_BROWSER_TEST_F(CloudPrintPolicyTest, CloudPrintPolicyFlag) { 58 IN_PROC_BROWSER_TEST_F(CloudPrintPolicyTest, CloudPrintPolicyFlag) {
59 CommandLine new_command_line(GetCommandLineForRelaunch()); 59 CommandLine new_command_line(GetCommandLineForRelaunch());
60 new_command_line.AppendSwitch(switches::kCheckCloudPrintConnectorPolicy); 60 new_command_line.AppendSwitch(switches::kCheckCloudPrintConnectorPolicy);
61 new_command_line.AppendSwitchASCII(
62 switches::kSpeculativeResourcePrefetching,
63 switches::kSpeculativeResourcePrefetchingDisabled);
61 64
62 base::ProcessHandle handle; 65 base::ProcessHandle handle;
63 bool launched = 66 bool launched =
64 base::LaunchProcess(new_command_line, base::LaunchOptions(), &handle); 67 base::LaunchProcess(new_command_line, base::LaunchOptions(), &handle);
65 EXPECT_TRUE(launched); 68 EXPECT_TRUE(launched);
66 69
67 int exit_code = -100; 70 int exit_code = -100;
68 bool exited = 71 bool exited =
69 base::WaitForExitCodeWithTimeout(handle, &exit_code, 72 base::WaitForExitCodeWithTimeout(handle, &exit_code,
70 TestTimeouts::action_timeout()); 73 TestTimeouts::action_timeout());
71 74
72 EXPECT_TRUE(exited); 75 EXPECT_TRUE(exited);
73 EXPECT_EQ(content::RESULT_CODE_NORMAL_EXIT, exit_code); 76 EXPECT_EQ(content::RESULT_CODE_NORMAL_EXIT, exit_code);
74 base::CloseProcessHandle(handle); 77 base::CloseProcessHandle(handle);
75 } 78 }
76 79
77 } // namespace 80 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_field_trial.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698