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

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 2494633005: Revert of [sync] "TwoClientBookmarksSyncTest.Sanity" is flaky (Closed)
Patch Set: Created 4 years, 1 month 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
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 "chrome/browser/sync/test/integration/sync_test.h" 5 #include "chrome/browser/sync/test/integration/sync_test.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 #endif 300 #endif
301 } 301 }
302 302
303 void SyncTest::AddTestSwitches(base::CommandLine* cl) { 303 void SyncTest::AddTestSwitches(base::CommandLine* cl) {
304 // Disable non-essential access of external network resources. 304 // Disable non-essential access of external network resources.
305 if (!cl->HasSwitch(switches::kDisableBackgroundNetworking)) 305 if (!cl->HasSwitch(switches::kDisableBackgroundNetworking))
306 cl->AppendSwitch(switches::kDisableBackgroundNetworking); 306 cl->AppendSwitch(switches::kDisableBackgroundNetworking);
307 307
308 if (!cl->HasSwitch(switches::kSyncShortInitialRetryOverride)) 308 if (!cl->HasSwitch(switches::kSyncShortInitialRetryOverride))
309 cl->AppendSwitch(switches::kSyncShortInitialRetryOverride); 309 cl->AppendSwitch(switches::kSyncShortInitialRetryOverride);
310
311 if (!cl->HasSwitch(switches::kSyncShortNudgeDelayForTest))
312 cl->AppendSwitch(switches::kSyncShortNudgeDelayForTest);
313 } 310 }
314 311
315 void SyncTest::AddOptionalTypesToCommandLine(base::CommandLine* cl) {} 312 void SyncTest::AddOptionalTypesToCommandLine(base::CommandLine* cl) {}
316 313
317 bool SyncTest::CreateGaiaAccount(const std::string& username, 314 bool SyncTest::CreateGaiaAccount(const std::string& username,
318 const std::string& password) { 315 const std::string& password) {
319 std::string relative_url = base::StringPrintf("/CreateUsers?%s=%s", 316 std::string relative_url = base::StringPrintf("/CreateUsers?%s=%s",
320 username.c_str(), 317 username.c_str(),
321 password.c_str()); 318 password.c_str());
322 GURL create_user_url = 319 GURL create_user_url =
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 1126
1130 void SyncTest::TriggerSyncForModelTypes(int index, 1127 void SyncTest::TriggerSyncForModelTypes(int index,
1131 syncer::ModelTypeSet model_types) { 1128 syncer::ModelTypeSet model_types) {
1132 GetSyncService(index)->TriggerRefresh(model_types); 1129 GetSyncService(index)->TriggerRefresh(model_types);
1133 } 1130 }
1134 1131
1135 void SyncTest::SetPreexistingPreferencesFileContents( 1132 void SyncTest::SetPreexistingPreferencesFileContents(
1136 const std::string& contents) { 1133 const std::string& contents) {
1137 preexisting_preferences_file_contents_ = contents; 1134 preexisting_preferences_file_contents_ = contents;
1138 } 1135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698