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

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

Issue 7828055: Move sync test code out of chrome/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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.h
===================================================================
--- chrome/test/live_sync/performance/sync_timing_helper.h (revision 99413)
+++ chrome/test/live_sync/performance/sync_timing_helper.h (working copy)
@@ -1,49 +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.
-
-#ifndef CHROME_TEST_LIVE_SYNC_PERFORMANCE_SYNC_TIMING_HELPER_H_
-#define CHROME_TEST_LIVE_SYNC_PERFORMANCE_SYNC_TIMING_HELPER_H_
-#pragma once
-
-#include "base/basictypes.h"
-
-#include <string>
-#include <vector>
-
-namespace base {
-class TimeDelta;
-}
-
-class ProfileSyncServiceHarness;
-
-class SyncTimingHelper {
- public:
- SyncTimingHelper();
- ~SyncTimingHelper();
-
- // Returns the time taken for |client| to complete a single sync cycle.
- static base::TimeDelta TimeSyncCycle(ProfileSyncServiceHarness* client);
-
- // Returns the time taken for both |client| and |partner| to complete a sync
- // cycle.
- static base::TimeDelta TimeMutualSyncCycle(
- ProfileSyncServiceHarness* client, ProfileSyncServiceHarness* partner);
-
- // Returns the time taken for all clients in |clients| to complete their
- // respective sync cycles.
- static base::TimeDelta TimeUntilQuiescence(
- std::vector<ProfileSyncServiceHarness*>& clients);
-
- // Print a timing measurement in a format appropriate for the chromium perf
- // dashboard. Simplified version of methods defined in
- // chrome/test/ui/ui_perf_test.{h,cc}.
- static void PrintResult(const std::string& measurement,
- const std::string& trace,
- const base::TimeDelta& dt);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(SyncTimingHelper);
-};
-
-#endif // CHROME_TEST_LIVE_SYNC_PERFORMANCE_SYNC_TIMING_HELPER_H_
« no previous file with comments | « chrome/test/live_sync/performance/sessions_sync_perf_test.cc ('k') | chrome/test/live_sync/performance/sync_timing_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698