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

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

Issue 7484007: Move sync performance tests into new target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-upload again 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/sync_timing_helper.cc
diff --git a/chrome/test/live_sync/live_sync_timing_helper.cc b/chrome/test/live_sync/performance/sync_timing_helper.cc
similarity index 73%
rename from chrome/test/live_sync/live_sync_timing_helper.cc
rename to chrome/test/live_sync/performance/sync_timing_helper.cc
index d910c99c56009273788187ca016b117707baa94e..059589604fc7431747f68cf7c67e02349d9650fb 100644
--- a/chrome/test/live_sync/live_sync_timing_helper.cc
+++ b/chrome/test/live_sync/performance/sync_timing_helper.cc
@@ -2,31 +2,34 @@
// 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/performance/sync_timing_helper.h"
#include "base/time.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
#include "testing/gtest/include/gtest/gtest.h"
-LiveSyncTimingHelper::LiveSyncTimingHelper() {}
+SyncTimingHelper::SyncTimingHelper() {}
-LiveSyncTimingHelper::~LiveSyncTimingHelper() {}
+SyncTimingHelper::~SyncTimingHelper() {}
-base::TimeDelta LiveSyncTimingHelper::TimeSyncCycle(
+// static
+base::TimeDelta SyncTimingHelper::TimeSyncCycle(
ProfileSyncServiceHarness* client) {
base::Time start = base::Time::Now();
EXPECT_TRUE(client->AwaitSyncCycleCompletion("Timing sync cycle."));
return base::Time::Now() - start;
}
-base::TimeDelta LiveSyncTimingHelper::TimeMutualSyncCycle(
+// static
+base::TimeDelta SyncTimingHelper::TimeMutualSyncCycle(
ProfileSyncServiceHarness* client, ProfileSyncServiceHarness* partner) {
base::Time start = base::Time::Now();
EXPECT_TRUE(client->AwaitMutualSyncCycleCompletion(partner));
return base::Time::Now() - start;
}
-base::TimeDelta LiveSyncTimingHelper::TimeUntilQuiescence(
+// static
+base::TimeDelta SyncTimingHelper::TimeUntilQuiescence(
std::vector<ProfileSyncServiceHarness*>& clients) {
base::Time start = base::Time::Now();
EXPECT_TRUE(ProfileSyncServiceHarness::AwaitQuiescence(clients));
« no previous file with comments | « chrome/test/live_sync/performance/sync_timing_helper.h ('k') | chrome/test/live_sync/performance/typed_urls_sync_perf_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698