OLD | NEW |
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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class ProfileOAuth2TokenService; | 22 class ProfileOAuth2TokenService; |
23 class ProfileSyncComponentsFactory; | 23 class ProfileSyncComponentsFactory; |
24 class ProfileSyncComponentsFactoryMock; | 24 class ProfileSyncComponentsFactoryMock; |
25 | 25 |
26 ACTION(ReturnNewDataTypeManager) { | 26 ACTION(ReturnNewDataTypeManager) { |
27 return new sync_driver::DataTypeManagerImpl(base::Closure(), | 27 return new sync_driver::DataTypeManagerImpl(base::Closure(), |
28 arg0, | 28 arg0, |
29 arg1, | 29 arg1, |
30 arg2, | 30 arg2, |
31 arg3, | 31 arg3, |
32 arg4, | 32 arg4); |
33 arg5); | |
34 } | 33 } |
35 | 34 |
36 namespace browser_sync { | 35 namespace browser_sync { |
37 | 36 |
38 class SyncBackendHostForProfileSyncTest : public SyncBackendHostImpl { | 37 class SyncBackendHostForProfileSyncTest : public SyncBackendHostImpl { |
39 public: | 38 public: |
40 SyncBackendHostForProfileSyncTest( | 39 SyncBackendHostForProfileSyncTest( |
41 Profile* profile, | 40 Profile* profile, |
42 invalidation::InvalidationService* invalidator, | 41 invalidation::InvalidationService* invalidator, |
43 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, | 42 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() | 105 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() |
107 OVERRIDE; | 106 OVERRIDE; |
108 | 107 |
109 virtual bool NeedBackup() const OVERRIDE; | 108 virtual bool NeedBackup() const OVERRIDE; |
110 | 109 |
111 private: | 110 private: |
112 syncer::TestIdFactory id_factory_; | 111 syncer::TestIdFactory id_factory_; |
113 }; | 112 }; |
114 | 113 |
115 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 114 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |