OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_AWAIT_MATCH_STATUS_CHANGE_CHECKER_H
_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_AWAIT_MATCH_STATUS_CHANGE_CHECKER_H
_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_AWAIT_MATCH_STATUS_CHANGE_CHECKER_H
_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_AWAIT_MATCH_STATUS_CHANGE_CHECKER_H
_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" | 12 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" |
13 | 13 |
14 // Helper class used in the datatype specific AwaitAllModelsMatch | 14 // Helper class used in the datatype specific AwaitAllModelsMatch |
15 // implementations. |conditon| should be a datatype specific condition that | 15 // implementations. |conditon| should be a datatype specific condition that |
16 // verifies the state of all the profiles involved in the test. | 16 // verifies the state of all the profiles involved in the test. |
17 class AwaitMatchStatusChangeChecker : public MultiClientStatusChangeChecker { | 17 class AwaitMatchStatusChangeChecker : public MultiClientStatusChangeChecker { |
18 public: | 18 public: |
19 typedef base::Callback<bool(void)> ExitConditionCallback; | 19 using ExitConditionCallback = base::Callback<bool(void)>; |
20 | 20 |
21 AwaitMatchStatusChangeChecker(const ExitConditionCallback& condition, | 21 AwaitMatchStatusChangeChecker(const ExitConditionCallback& condition, |
22 const std::string& debug_message); | 22 const std::string& debug_message); |
23 ~AwaitMatchStatusChangeChecker() override; | 23 ~AwaitMatchStatusChangeChecker() override; |
24 | 24 |
25 bool IsExitConditionSatisfied() override; | 25 bool IsExitConditionSatisfied() override; |
26 std::string GetDebugMessage() const override; | 26 std::string GetDebugMessage() const override; |
27 | 27 |
28 private: | 28 private: |
29 ExitConditionCallback condition_; | 29 ExitConditionCallback condition_; |
30 std::string debug_message_; | 30 std::string debug_message_; |
31 }; | 31 }; |
32 | 32 |
33 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_AWAIT_MATCH_STATUS_CHANGE_CHECKE
R_H_ | 33 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_AWAIT_MATCH_STATUS_CHANGE_CHECKE
R_H_ |
OLD | NEW |