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

Unified Diff: chrome/test/live_sync/perf/live_sync_timing_helper.cc

Issue 7376001: Move sync performance tests into new target (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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/perf/live_sync_timing_helper.cc
diff --git a/chrome/test/live_sync/live_sync_timing_helper.cc b/chrome/test/live_sync/perf/live_sync_timing_helper.cc
similarity index 92%
rename from chrome/test/live_sync/live_sync_timing_helper.cc
rename to chrome/test/live_sync/perf/live_sync_timing_helper.cc
index d910c99c56009273788187ca016b117707baa94e..29faa4a1985da47cd6d18752311c6700d7694cda 100644
--- a/chrome/test/live_sync/live_sync_timing_helper.cc
+++ b/chrome/test/live_sync/perf/live_sync_timing_helper.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/test/live_sync/live_sync_timing_helper.h"
+#include "chrome/test/live_sync/perf/live_sync_timing_helper.h"
#include "base/time.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
@@ -12,6 +12,7 @@ LiveSyncTimingHelper::LiveSyncTimingHelper() {}
LiveSyncTimingHelper::~LiveSyncTimingHelper() {}
+// static
base::TimeDelta LiveSyncTimingHelper::TimeSyncCycle(
ProfileSyncServiceHarness* client) {
base::Time start = base::Time::Now();
@@ -19,6 +20,7 @@ base::TimeDelta LiveSyncTimingHelper::TimeSyncCycle(
return base::Time::Now() - start;
}
+// static
base::TimeDelta LiveSyncTimingHelper::TimeMutualSyncCycle(
ProfileSyncServiceHarness* client, ProfileSyncServiceHarness* partner) {
base::Time start = base::Time::Now();
@@ -26,6 +28,7 @@ base::TimeDelta LiveSyncTimingHelper::TimeMutualSyncCycle(
return base::Time::Now() - start;
}
+// static
base::TimeDelta LiveSyncTimingHelper::TimeUntilQuiescence(
std::vector<ProfileSyncServiceHarness*>& clients) {
base::Time start = base::Time::Now();

Powered by Google App Engine
This is Rietveld 408576698