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

Unified Diff: chrome/test/live_sync/performance/extensions_sync_perf_test.cc

Issue 7464046: Sync performance tests: Cleanup TODOs and print in dashboard friendly format (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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/test/live_sync/performance/extensions_sync_perf_test.cc
diff --git a/chrome/test/live_sync/performance/extensions_sync_perf_test.cc b/chrome/test/live_sync/performance/extensions_sync_perf_test.cc
index f66f10740480fadb67da262380bc5967aea460c7..00e7a1c7a8d782acc9121fbddb8a17dbf65cf3c1 100644
--- a/chrome/test/live_sync/performance/extensions_sync_perf_test.cc
+++ b/chrome/test/live_sync/performance/extensions_sync_perf_test.cc
@@ -10,15 +10,11 @@
// TODO(braffert): Replicate these tests for apps.
static const int kNumExtensions = 150;
-
-// TODO(braffert): Consider the range / resolution of these test points.
static const int kNumBenchmarkPoints = 18;
static const int kBenchmarkPoints[] = {1, 10, 20, 30, 40, 50, 75, 100, 125,
150, 175, 200, 225, 250, 300, 350, 400,
500};
-// TODO(braffert): Move this class into its own .h/.cc files. What should the
-// class files be named as opposed to the file containing the tests themselves?
class ExtensionsSyncPerfTest
: public TwoClientLiveExtensionsSyncTest {
public:
@@ -87,8 +83,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionsSyncPerfTest, Add) {
InstallExtensionsPendingForSync(GetProfile(1));
ASSERT_TRUE(AllProfilesHaveSameExtensions());
- // TODO(braffert): Compare timings against some target value.
- VLOG(0) << std::endl << "dt: " << dt.InSecondsF() << " s";
+ SyncTimingHelper::PrintResult("extensions", "add", dt);
}
// TCM ID - 7655397.
@@ -104,8 +99,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionsSyncPerfTest, Update) {
SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1));
ASSERT_TRUE(AllProfilesHaveSameExtensions());
- // TODO(braffert): Compare timings against some target value.
- VLOG(0) << std::endl << "dt: " << dt.InSecondsF() << " s";
+ SyncTimingHelper::PrintResult("extensions", "update", dt);
}
// TCM ID - 7567721.
@@ -121,8 +115,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionsSyncPerfTest, Delete) {
SyncTimingHelper::TimeMutualSyncCycle(GetClient(0), GetClient(1));
ASSERT_TRUE(AllProfilesHaveSameExtensions());
- // TODO(braffert): Compare timings against some target value.
- VLOG(0) << std::endl << "dt: " << dt.InSecondsF() << " s";
+ SyncTimingHelper::PrintResult("extensions", "delete", dt);
}
IN_PROC_BROWSER_TEST_F(ExtensionsSyncPerfTest, DISABLED_Benchmark) {

Powered by Google App Engine
This is Rietveld 408576698