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

Unified Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 1851243002: [Sync] Eliminate verifier profile from sync_integration_tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: do not remove AwaitQuiescence() Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/sync_test.cc
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc
index 452758470796d86ea8d215c54a4777fd31d79694..3448e3d1c7930c2dca9aee3c89648212205e8e33 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -420,6 +420,17 @@ Profile* SyncTest::GetProfile(int index) {
return profiles_[index];
}
+std::vector<Profile*> SyncTest::GetAllProfiles() {
+ std::vector<Profile*> profiles;
+ if (use_verifier()) {
+ profiles.push_back(verifier());
+ }
+ for (int i = 0; i < num_clients(); ++i) {
+ profiles.push_back(GetProfile(i));
+ }
+ return profiles;
+}
+
Browser* SyncTest::GetBrowser(int index) {
if (browsers_.empty())
LOG(FATAL) << "SetupClients() has not yet been called.";

Powered by Google App Engine
This is Rietveld 408576698