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

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: Updates for Max. Created 4 years, 3 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 82cde03c4e42e03e68017b47e931c26da79b249d..91fdf5b50225cf02c3b78948f50826c56bf2ade3 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -1016,9 +1016,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