OLD | NEW |
---|---|
(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 namespace base { | |
12 class TimeDelta; | |
Raghu Simha
2011/06/16 22:42:55
indent -= 2.
braffert
2011/06/17 18:19:46
Done.
| |
13 } | |
14 | |
15 class LiveSyncTest; | |
16 class ProfileSyncServiceHarness; | |
17 | |
18 class LiveSyncTimingHelper { | |
19 public: | |
20 LiveSyncTimingHelper(); | |
21 ~LiveSyncTimingHelper(); | |
22 | |
23 // Associates the timing helper object with a test. | |
24 void Setup(LiveSyncTest* test); | |
Raghu Simha
2011/06/16 22:42:55
With the change I've suggested to TimeUntilQuiesce
braffert
2011/06/17 18:19:46
Done.
| |
25 | |
26 // Returns the time taken for |client| to complete a single sync cycle. | |
27 base::TimeDelta TimeSyncCycle(ProfileSyncServiceHarness* client); | |
28 | |
29 // Returns the time taken for both |client| and partner to complete a sync | |
Raghu Simha
2011/06/16 22:42:55
nit: partner -> |partner|.
braffert
2011/06/17 18:19:46
Done.
| |
30 // cycle. | |
31 base::TimeDelta TimeMutualSyncCycle(ProfileSyncServiceHarness* client, | |
32 ProfileSyncServiceHarness* partner); | |
33 | |
34 // Returns the time taken for all clients to complete their respective sync | |
35 // cycles. | |
36 base::TimeDelta TimeUntilQuiescence(); | |
Raghu Simha
2011/06/16 22:42:55
I suggest making this method take a std::vector<Pr
braffert
2011/06/17 18:19:46
Done.
| |
37 | |
38 private: | |
39 LiveSyncTest* test_; | |
Raghu Simha
2011/06/16 22:42:55
With the change I've suggested to TimeUntilQuiesce
braffert
2011/06/17 18:19:46
Done.
| |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(LiveSyncTimingHelper); | |
42 }; | |
43 | |
44 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TIMING_HELPER_H_ | |
OLD | NEW |