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

Unified Diff: chrome/browser/sync/test/integration/performance/dictionary_sync_perf_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/performance/dictionary_sync_perf_test.cc
diff --git a/chrome/browser/sync/test/integration/performance/dictionary_sync_perf_test.cc b/chrome/browser/sync/test/integration/performance/dictionary_sync_perf_test.cc
index 848767c9fc1585338d0ce8c6f72311c09f0362ea..205c5366fc8f9ed6f9bfb0d3ca7a868fe4392208 100644
--- a/chrome/browser/sync/test/integration/performance/dictionary_sync_perf_test.cc
+++ b/chrome/browser/sync/test/integration/performance/dictionary_sync_perf_test.cc
@@ -12,6 +12,9 @@
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "components/spellcheck/common/spellcheck_common.h"
+using sync_timing_helper::PrintResult;
+using sync_timing_helper::TimeMutualSyncCycle;
+
class DictionarySyncPerfTest : public SyncTest {
public:
DictionarySyncPerfTest() : SyncTest(TWO_CLIENT) {}
@@ -31,16 +34,16 @@ IN_PROC_BROWSER_TEST_F(DictionarySyncPerfTest, P0) {
ASSERT_TRUE(dictionary_helper::AddWord(
0, "foo" + base::Uint64ToString(i)));
}
- dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1));
+ dt = TimeMutualSyncCycle(GetClient(0), GetClient(1));
ASSERT_EQ(spellcheck::MAX_SYNCABLE_DICTIONARY_WORDS,
dictionary_helper::GetDictionarySize(1));
- SyncTimingHelper::PrintResult("dictionary", "add_words", dt);
+ PrintResult("dictionary", "add_words", dt);
for (size_t i = 0; i < spellcheck::MAX_SYNCABLE_DICTIONARY_WORDS; ++i) {
ASSERT_TRUE(dictionary_helper::RemoveWord(
0, "foo" + base::Uint64ToString(i)));
}
- dt = SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1));
+ dt = TimeMutualSyncCycle(GetClient(0), GetClient(1));
ASSERT_EQ(0UL, dictionary_helper::GetDictionarySize(1));
- SyncTimingHelper::PrintResult("dictionary", "remove_words", dt);
+ PrintResult("dictionary", "remove_words", dt);
}

Powered by Google App Engine
This is Rietveld 408576698