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

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

Issue 7841007: Rename browser/sync/test/live_sync directory to browser/sync/test/integration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 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/live_sync/performance/sync_timing_helper.cc
diff --git a/chrome/browser/sync/test/live_sync/performance/sync_timing_helper.cc b/chrome/browser/sync/test/live_sync/performance/sync_timing_helper.cc
deleted file mode 100644
index 8d985f64e8fb82361c555894d7d72b3a3146fdd0..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/test/live_sync/performance/sync_timing_helper.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/sync/test/live_sync/performance/sync_timing_helper.h"
-
-#include "base/string_number_conversions.h"
-#include "base/time.h"
-#include "chrome/browser/sync/profile_sync_service_harness.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-SyncTimingHelper::SyncTimingHelper() {}
-
-SyncTimingHelper::~SyncTimingHelper() {}
-
-// 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;
-}
-
-// 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;
-}
-
-// static
-base::TimeDelta SyncTimingHelper::TimeUntilQuiescence(
- std::vector<ProfileSyncServiceHarness*>& clients) {
- base::Time start = base::Time::Now();
- EXPECT_TRUE(ProfileSyncServiceHarness::AwaitQuiescence(clients));
- return base::Time::Now() - start;
-}
-
-// static
-void SyncTimingHelper::PrintResult(const std::string& measurement,
- const std::string& trace,
- const base::TimeDelta& dt) {
- printf("*RESULT %s: %s= %s ms\n", measurement.c_str(), trace.c_str(),
- base::IntToString(dt.InMillisecondsF()).c_str());
-}

Powered by Google App Engine
This is Rietveld 408576698