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

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

Issue 2379433002: [Sync] Refactoring of sync integration test checkers to remove boilerplate await methods. (Closed)
Patch Set: Rebase Created 4 years, 2 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 82a8859569b385425100412cdd67d408591e5a80..ea15f8659104900f21be86a0c87fddc86ad1a13e 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -1013,9 +1013,7 @@ bool SyncTest::IsEncryptionComplete(int index) {
bool SyncTest::AwaitEncryptionComplete(int index) {
ProfileSyncService* service = GetClient(index)->service();
- EncryptionChecker checker(service);
- checker.Wait();
- return !checker.TimedOut();
+ return EncryptionChecker(service).Wait();
}
bool SyncTest::AwaitQuiescence() {

Powered by Google App Engine
This is Rietveld 408576698