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

Side by Side Diff: chrome/test/live_sync/live_sync_timing_helper.h

Issue 7171003: Performance tests for bookmark sync. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Adding TCM IDs Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TIMING_HELPER_H_
6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TIMING_HELPER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10
11 #include <vector>
12
13 namespace base {
14 class TimeDelta;
15 }
16
17 class ProfileSyncServiceHarness;
18
19 class LiveSyncTimingHelper {
20 public:
21 LiveSyncTimingHelper();
22 ~LiveSyncTimingHelper();
23
24 // Returns the time taken for |client| to complete a single sync cycle.
25 static base::TimeDelta TimeSyncCycle(ProfileSyncServiceHarness* client);
26
27 // Returns the time taken for both |client| and |partner| to complete a sync
28 // cycle.
29 static base::TimeDelta TimeMutualSyncCycle(
30 ProfileSyncServiceHarness* client, ProfileSyncServiceHarness* partner);
31
32 // Returns the time taken for all clients in |clients| to complete their
33 // respective sync cycles.
34 static base::TimeDelta TimeUntilQuiescence(
35 std::vector<ProfileSyncServiceHarness*>& clients);
36
37 private:
38 DISALLOW_COPY_AND_ASSIGN(LiveSyncTimingHelper);
39 };
40
41 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TIMING_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/test/live_sync/live_bookmarks_sync_test.cc ('k') | chrome/test/live_sync/live_sync_timing_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698