OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_
H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_
H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_
H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_
H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 std::vector<ProfileSyncService*> services); | 25 std::vector<ProfileSyncService*> services); |
26 virtual ~MultiClientStatusChangeChecker(); | 26 virtual ~MultiClientStatusChangeChecker(); |
27 | 27 |
28 // Called when waiting times out. | 28 // Called when waiting times out. |
29 void OnTimeout(); | 29 void OnTimeout(); |
30 | 30 |
31 // Blocks until the exit condition is satisfied or a timeout occurs. | 31 // Blocks until the exit condition is satisfied or a timeout occurs. |
32 void Wait(); | 32 void Wait(); |
33 | 33 |
34 // ProfileSyncServiceObserver implementation. | 34 // ProfileSyncServiceObserver implementation. |
35 virtual void OnStateChanged() OVERRIDE; | 35 virtual void OnStateChanged() override; |
36 | 36 |
37 // StatusChangeChecker implementations and stubs. | 37 // StatusChangeChecker implementations and stubs. |
38 virtual bool IsExitConditionSatisfied() = 0; | 38 virtual bool IsExitConditionSatisfied() = 0; |
39 virtual std::string GetDebugMessage() const = 0; | 39 virtual std::string GetDebugMessage() const = 0; |
40 | 40 |
41 protected: | 41 protected: |
42 const std::vector<ProfileSyncService*>& services() { return services_; } | 42 const std::vector<ProfileSyncService*>& services() { return services_; } |
43 | 43 |
44 private: | 44 private: |
45 std::vector<ProfileSyncService*> services_; | 45 std::vector<ProfileSyncService*> services_; |
46 }; | 46 }; |
47 | 47 |
48 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECK
ER_H_ | 48 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECK
ER_H_ |
OLD | NEW |