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

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

Issue 2919953002: Revert of Unpack theme data from extensions off of UI thread. (Closed)
Patch Set: Created 3 years, 6 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 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_SYNC_INTEGRATION_TEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/sync/test/integration/fake_server_match_status_checker. h" 10 #include "chrome/browser/sync/test/integration/fake_server_match_status_checker. h"
11 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h" 11 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h"
12 #include "components/sync/base/model_type.h" 12 #include "components/sync/base/model_type.h"
13 13
14 class Profile;
15
16 namespace browser_sync { 14 namespace browser_sync {
17 class ProfileSyncService; 15 class ProfileSyncService;
18 } // namespace browser_sync 16 } // namespace browser_sync
19 17
20 // Sets a custom theme and wait until the asynchronous process is done.
21 void SetCustomTheme(Profile* profile, int theme_index = 0);
22
23 // Checker to block until the server has a given number of entities. 18 // Checker to block until the server has a given number of entities.
24 class ServerCountMatchStatusChecker 19 class ServerCountMatchStatusChecker
25 : public fake_server::FakeServerMatchStatusChecker { 20 : public fake_server::FakeServerMatchStatusChecker {
26 public: 21 public:
27 ServerCountMatchStatusChecker(syncer::ModelType type, size_t count); 22 ServerCountMatchStatusChecker(syncer::ModelType type, size_t count);
28 23
29 // StatusChangeChecker implementation. 24 // StatusChangeChecker implementation.
30 bool IsExitConditionSatisfied() override; 25 bool IsExitConditionSatisfied() override;
31 std::string GetDebugMessage() const override; 26 std::string GetDebugMessage() const override;
32 27
(...skipping 16 matching lines...) Expand all
49 class PassphraseAcceptedChecker : public SingleClientStatusChangeChecker { 44 class PassphraseAcceptedChecker : public SingleClientStatusChangeChecker {
50 public: 45 public:
51 explicit PassphraseAcceptedChecker(browser_sync::ProfileSyncService* service); 46 explicit PassphraseAcceptedChecker(browser_sync::ProfileSyncService* service);
52 47
53 // StatusChangeChecker implementation. 48 // StatusChangeChecker implementation.
54 bool IsExitConditionSatisfied() override; 49 bool IsExitConditionSatisfied() override;
55 std::string GetDebugMessage() const override; 50 std::string GetDebugMessage() const override;
56 }; 51 };
57 52
58 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_ 53 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698