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); |
33 } | 34 } |
34 | 35 |
35 namespace browser_sync { | 36 namespace browser_sync { |
36 | 37 |
37 class SyncBackendHostForProfileSyncTest : public SyncBackendHostImpl { | 38 class SyncBackendHostForProfileSyncTest : public SyncBackendHostImpl { |
38 public: | 39 public: |
39 SyncBackendHostForProfileSyncTest( | 40 SyncBackendHostForProfileSyncTest( |
40 Profile* profile, | 41 Profile* profile, |
41 invalidation::InvalidationService* invalidator, | 42 invalidation::InvalidationService* invalidator, |
42 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, | 43 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() | 106 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() |
106 OVERRIDE; | 107 OVERRIDE; |
107 | 108 |
108 virtual bool NeedBackup() const OVERRIDE; | 109 virtual bool NeedBackup() const OVERRIDE; |
109 | 110 |
110 private: | 111 private: |
111 syncer::TestIdFactory id_factory_; | 112 syncer::TestIdFactory id_factory_; |
112 }; | 113 }; |
113 | 114 |
114 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 115 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |