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

Side by Side Diff: chrome/browser/sync/test_profile_sync_service.h

Issue 1407373006: [Sync] Componentize SyncBackendHost{Impl,Core,Mock}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sbhi
Patch Set: Rebase. Created 5 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_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 "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/sync/glue/sync_backend_host_impl.h"
14 #include "chrome/browser/sync/profile_sync_service.h" 13 #include "chrome/browser/sync/profile_sync_service.h"
15 #include "components/signin/core/browser/profile_oauth2_token_service.h" 14 #include "components/signin/core/browser/profile_oauth2_token_service.h"
16 #include "components/sync_driver/data_type_manager_impl.h" 15 #include "components/sync_driver/data_type_manager_impl.h"
16 #include "components/sync_driver/glue/sync_backend_host_impl.h"
17 #include "components/sync_driver/sync_client.h" 17 #include "components/sync_driver/sync_client.h"
18 #include "components/sync_driver/sync_prefs.h" 18 #include "components/sync_driver/sync_prefs.h"
19 #include "sync/test/engine/test_id_factory.h" 19 #include "sync/test/engine/test_id_factory.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 21
22 class Profile; 22 class Profile;
23 class ProfileOAuth2TokenService; 23 class ProfileOAuth2TokenService;
24 class SyncApiComponentFactoryMock; 24 class SyncApiComponentFactoryMock;
25 25
26 ACTION(ReturnNewDataTypeManager) { 26 ACTION(ReturnNewDataTypeManager) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // and cause memory leak in test. 101 // and cause memory leak in test.
102 syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() override; 102 syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() override;
103 103
104 bool NeedBackup() const override; 104 bool NeedBackup() const override;
105 105
106 private: 106 private:
107 syncer::TestIdFactory id_factory_; 107 syncer::TestIdFactory id_factory_;
108 }; 108 };
109 109
110 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 110 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698