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

Side by Side Diff: chrome/browser/sync/test/integration/await_match_status_change_checker.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | chrome/browser/sync/test/integration/migration_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698