| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 base::Closure callback_; | 66 base::Closure callback_; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace browser_sync | 69 } // namespace browser_sync |
| 70 | 70 |
| 71 class TestProfileSyncService : public ProfileSyncService { | 71 class TestProfileSyncService : public ProfileSyncService { |
| 72 public: | 72 public: |
| 73 // TODO(tim): Add ability to inject TokenService alongside SigninManager. | 73 // TODO(tim): Add ability to inject TokenService alongside SigninManager. |
| 74 // TODO(rogerta): what does above comment mean? | 74 // TODO(rogerta): what does above comment mean? |
| 75 TestProfileSyncService( | 75 TestProfileSyncService( |
| 76 scoped_ptr<ProfileSyncComponentsFactory> factory, | 76 ProfileSyncComponentsFactory* factory, |
| 77 Profile* profile, | 77 Profile* profile, |
| 78 SigninManagerBase* signin, | 78 SigninManagerBase* signin, |
| 79 ProfileOAuth2TokenService* oauth2_token_service, | 79 ProfileOAuth2TokenService* oauth2_token_service, |
| 80 browser_sync::ProfileSyncServiceStartBehavior behavior); | 80 browser_sync::ProfileSyncServiceStartBehavior behavior); |
| 81 | 81 |
| 82 virtual ~TestProfileSyncService(); | 82 virtual ~TestProfileSyncService(); |
| 83 | 83 |
| 84 virtual void OnConfigureDone( | 84 virtual void OnConfigureDone( |
| 85 const browser_sync::DataTypeManager::ConfigureResult& result) OVERRIDE; | 85 const browser_sync::DataTypeManager::ConfigureResult& result) OVERRIDE; |
| 86 | 86 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 104 // js messages on UI loop when it's being destroyed, which are not deleted | 104 // js messages on UI loop when it's being destroyed, which are not deleted |
| 105 // and cause memory leak in test. | 105 // and cause memory leak in test. |
| 106 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() | 106 virtual syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() |
| 107 OVERRIDE; | 107 OVERRIDE; |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 syncer::TestIdFactory id_factory_; | 110 syncer::TestIdFactory id_factory_; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 113 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |