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

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

Issue 2479313004: [sync] "TwoClientBookmarksSyncTest.Sanity" is flaky (Closed)
Patch Set: addressed comments 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);
310 } 313 }
311 314
312 void SyncTest::AddOptionalTypesToCommandLine(base::CommandLine* cl) {} 315 void SyncTest::AddOptionalTypesToCommandLine(base::CommandLine* cl) {}
313 316
314 bool SyncTest::CreateGaiaAccount(const std::string& username, 317 bool SyncTest::CreateGaiaAccount(const std::string& username,
315 const std::string& password) { 318 const std::string& password) {
316 std::string relative_url = base::StringPrintf("/CreateUsers?%s=%s", 319 std::string relative_url = base::StringPrintf("/CreateUsers?%s=%s",
317 username.c_str(), 320 username.c_str(),
318 password.c_str()); 321 password.c_str());
319 GURL create_user_url = 322 GURL create_user_url =
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 1129
1127 void SyncTest::TriggerSyncForModelTypes(int index, 1130 void SyncTest::TriggerSyncForModelTypes(int index,
1128 syncer::ModelTypeSet model_types) { 1131 syncer::ModelTypeSet model_types) {
1129 GetSyncService(index)->TriggerRefresh(model_types); 1132 GetSyncService(index)->TriggerRefresh(model_types);
1130 } 1133 }
1131 1134
1132 void SyncTest::SetPreexistingPreferencesFileContents( 1135 void SyncTest::SetPreexistingPreferencesFileContents(
1133 const std::string& contents) { 1136 const std::string& contents) {
1134 preexisting_preferences_file_contents_ = contents; 1137 preexisting_preferences_file_contents_ = contents;
1135 } 1138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698