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

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

Issue 367153005: Sync: Refactoring of DEVICE_INFO syncable type - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed scoped_ptr issue in ProfileSyncService constructor Created 6 years, 5 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 (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
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 ProfileSyncComponentsFactory* factory, 76 scoped_ptr<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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc ('k') | chrome/browser/sync/test_profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698