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

Side by Side Diff: chrome/test/live_sync/live_sync_test.cc

Issue 6874018: make new syncer thread the default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review for Raghu. Created 9 years, 8 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/common/chrome_switches.cc ('k') | content/common/notification_type.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/test/live_sync/live_sync_test.h" 5 #include "chrome/test/live_sync/live_sync_test.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 net::ProxyConfig proxy_config_; 101 net::ProxyConfig proxy_config_;
102 }; 102 };
103 103
104 LiveSyncTest::LiveSyncTest(TestType test_type) 104 LiveSyncTest::LiveSyncTest(TestType test_type)
105 : sync_server_(net::TestServer::TYPE_SYNC, FilePath()), 105 : sync_server_(net::TestServer::TYPE_SYNC, FilePath()),
106 test_type_(test_type), 106 test_type_(test_type),
107 num_clients_(-1), 107 num_clients_(-1),
108 test_server_handle_(base::kNullProcessHandle) { 108 test_server_handle_(base::kNullProcessHandle) {
109 InProcessBrowserTest::set_show_window(true); 109 InProcessBrowserTest::set_show_window(true);
110 110
111 logging::SetMinLogLevel(logging::LOG_VERBOSE);
Raghu Simha 2011/04/19 04:25:37 Ideally, this should require an include of "base/l
112
111 switch (test_type_) { 113 switch (test_type_) {
112 case SINGLE_CLIENT: { 114 case SINGLE_CLIENT: {
113 num_clients_ = 1; 115 num_clients_ = 1;
114 break; 116 break;
115 } 117 }
116 case TWO_CLIENT: { 118 case TWO_CLIENT: {
117 num_clients_ = 2; 119 num_clients_ = 2;
118 break; 120 break;
119 } 121 }
120 case MULTIPLE_CLIENT: { 122 case MULTIPLE_CLIENT: {
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 const net::ProxyConfig& proxy_config) { 472 const net::ProxyConfig& proxy_config) {
471 base::WaitableEvent done(false, false); 473 base::WaitableEvent done(false, false);
472 BrowserThread::PostTask( 474 BrowserThread::PostTask(
473 BrowserThread::IO, 475 BrowserThread::IO,
474 FROM_HERE, 476 FROM_HERE,
475 new SetProxyConfigTask(&done, 477 new SetProxyConfigTask(&done,
476 context_getter, 478 context_getter,
477 proxy_config)); 479 proxy_config));
478 done.Wait(); 480 done.Wait();
479 } 481 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | content/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698