| 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/basictypes.h" | |
| 11 #include "base/callback.h" | 10 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 13 #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" |
| 14 | 13 |
| 15 // Helper class used in the datatype specific AwaitAllModelsMatch | 14 // Helper class used in the datatype specific AwaitAllModelsMatch |
| 16 // implementations. |conditon| should be a datatype specific condition that | 15 // implementations. |conditon| should be a datatype specific condition that |
| 17 // verifies the state of all the profiles involved in the test. | 16 // verifies the state of all the profiles involved in the test. |
| 18 class AwaitMatchStatusChangeChecker : public MultiClientStatusChangeChecker { | 17 class AwaitMatchStatusChangeChecker : public MultiClientStatusChangeChecker { |
| 19 public: | 18 public: |
| 20 typedef base::Callback<bool(void)> ExitConditionCallback; | 19 typedef base::Callback<bool(void)> ExitConditionCallback; |
| 21 | 20 |
| 22 AwaitMatchStatusChangeChecker(const ExitConditionCallback& condition, | 21 AwaitMatchStatusChangeChecker(const ExitConditionCallback& condition, |
| 23 const std::string& debug_message); | 22 const std::string& debug_message); |
| 24 ~AwaitMatchStatusChangeChecker() override; | 23 ~AwaitMatchStatusChangeChecker() override; |
| 25 | 24 |
| 26 bool IsExitConditionSatisfied() override; | 25 bool IsExitConditionSatisfied() override; |
| 27 std::string GetDebugMessage() const override; | 26 std::string GetDebugMessage() const override; |
| 28 | 27 |
| 29 private: | 28 private: |
| 30 ExitConditionCallback condition_; | 29 ExitConditionCallback condition_; |
| 31 std::string debug_message_; | 30 std::string debug_message_; |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 #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 |