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

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

Issue 2799003002: Unpack theme data from extensions off of UI thread. (Closed)
Patch Set: fix gtk case 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
14 namespace browser_sync { 16 namespace browser_sync {
15 class ProfileSyncService; 17 class ProfileSyncService;
16 } // namespace browser_sync 18 } // namespace browser_sync
17 19
20 // Sets a custom theme and wait until the asynchronous process is done.
21 void SetCustomTheme(Profile* profile, int theme_index = 0);
22
18 // Checker to block until the server has a given number of entities. 23 // Checker to block until the server has a given number of entities.
19 class ServerCountMatchStatusChecker 24 class ServerCountMatchStatusChecker
20 : public fake_server::FakeServerMatchStatusChecker { 25 : public fake_server::FakeServerMatchStatusChecker {
21 public: 26 public:
22 ServerCountMatchStatusChecker(syncer::ModelType type, size_t count); 27 ServerCountMatchStatusChecker(syncer::ModelType type, size_t count);
23 28
24 // StatusChangeChecker implementation. 29 // StatusChangeChecker implementation.
25 bool IsExitConditionSatisfied() override; 30 bool IsExitConditionSatisfied() override;
26 std::string GetDebugMessage() const override; 31 std::string GetDebugMessage() const override;
27 32
(...skipping 16 matching lines...) Expand all
44 class PassphraseAcceptedChecker : public SingleClientStatusChangeChecker { 49 class PassphraseAcceptedChecker : public SingleClientStatusChangeChecker {
45 public: 50 public:
46 explicit PassphraseAcceptedChecker(browser_sync::ProfileSyncService* service); 51 explicit PassphraseAcceptedChecker(browser_sync::ProfileSyncService* service);
47 52
48 // StatusChangeChecker implementation. 53 // StatusChangeChecker implementation.
49 bool IsExitConditionSatisfied() override; 54 bool IsExitConditionSatisfied() override;
50 std::string GetDebugMessage() const override; 55 std::string GetDebugMessage() const override;
51 }; 56 };
52 57
53 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_ 58 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698