diff options
author | Torne (Richard Coles) <torne@google.com> | 2013-11-28 11:55:43 +0000 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2013-11-28 11:55:43 +0000 |
commit | f2477e01787aa58f445919b809d89e252beef54f (patch) | |
tree | 2db962b4af39f0db3a5f83b314373d0530c484b8 /chrome/browser/sync/test_profile_sync_service.h | |
parent | 7daea1dd5ff7e419322de831b642d81af3247912 (diff) | |
download | chromium_org-f2477e01787aa58f445919b809d89e252beef54f.tar.gz |
Merge from Chromium at DEPS revision 237746
This commit was generated by merge_to_master.py.
Change-Id: I8997af4cddfeb09a7c26f7e8e672c712cab461ea
Diffstat (limited to 'chrome/browser/sync/test_profile_sync_service.h')
-rw-r--r-- | chrome/browser/sync/test_profile_sync_service.h | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/chrome/browser/sync/test_profile_sync_service.h b/chrome/browser/sync/test_profile_sync_service.h index cb8d3e6c84..3b72c6cf85 100644 --- a/chrome/browser/sync/test_profile_sync_service.h +++ b/chrome/browser/sync/test_profile_sync_service.h @@ -14,6 +14,7 @@ #include "chrome/browser/signin/profile_oauth2_token_service.h" #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" #include "chrome/browser/sync/glue/data_type_manager_impl.h" +#include "chrome/browser/sync/glue/sync_backend_host_impl.h" #include "chrome/browser/sync/profile_sync_components_factory_mock.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/sync/sync_prefs.h" @@ -36,7 +37,7 @@ ACTION(ReturnNewDataTypeManager) { namespace browser_sync { -class SyncBackendHostForProfileSyncTest : public SyncBackendHost { +class SyncBackendHostForProfileSyncTest : public SyncBackendHostImpl { public: // |synchronous_init| causes initialization to block until the syncapi has // completed setting itself up and called us back. @@ -105,6 +106,7 @@ class TestProfileSyncService : public ProfileSyncService { public: // TODO(tim): Remove |synchronous_backend_initialization|, and add ability to // inject TokenService alongside SigninManager. + // TODO(rogerta): what does above comment mean? TestProfileSyncService( ProfileSyncComponentsFactory* factory, Profile* profile, @@ -116,6 +118,9 @@ class TestProfileSyncService : public ProfileSyncService { virtual ~TestProfileSyncService(); virtual void RequestAccessToken() OVERRIDE; + virtual void OnGetTokenSuccess(const OAuth2TokenService::Request* request, + const std::string& access_token, + const base::Time& expiration_time) OVERRIDE; virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request, const GoogleServiceAuthError& error) OVERRIDE; @@ -185,26 +190,4 @@ class TestProfileSyncService : public ProfileSyncService { syncer::StorageOption storage_option_; }; - -class FakeOAuth2TokenService : public ProfileOAuth2TokenService { - public: - static BrowserContextKeyedService* BuildTokenService( - content::BrowserContext* context); - - protected: - virtual void FetchOAuth2Token( - OAuth2TokenService::RequestImpl* request, - const std::string& account_id, - net::URLRequestContextGetter* getter, - const std::string& client_id, - const std::string& client_secret, - const OAuth2TokenService::ScopeSet& scopes) OVERRIDE; - - virtual void PersistCredentials(const std::string& account_id, - const std::string& refresh_token) OVERRIDE; - - virtual void ClearPersistedCredentials( - const std::string& account_id) OVERRIDE; -}; - #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |