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

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

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing a unit test, addressing comments from courage@ Created 7 years, 3 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 bool set_initial_sync_ended_on_init_; 193 bool set_initial_sync_ended_on_init_;
194 194
195 bool fail_initial_download_; 195 bool fail_initial_download_;
196 syncer::StorageOption storage_option_; 196 syncer::StorageOption storage_option_;
197 }; 197 };
198 198
199 199
200 class FakeOAuth2TokenService : public ProfileOAuth2TokenService { 200 class FakeOAuth2TokenService : public ProfileOAuth2TokenService {
201 public: 201 public:
202 virtual scoped_ptr<OAuth2TokenService::Request> StartRequest( 202 virtual scoped_ptr<OAuth2TokenService::Request> StartRequest(
203 const std::string& account_id,
203 const OAuth2TokenService::ScopeSet& scopes, 204 const OAuth2TokenService::ScopeSet& scopes,
204 OAuth2TokenService::Consumer* consumer) OVERRIDE; 205 OAuth2TokenService::Consumer* consumer) OVERRIDE;
205 206
206 static BrowserContextKeyedService* BuildTokenService( 207 static BrowserContextKeyedService* BuildTokenService(
207 content::BrowserContext* context); 208 content::BrowserContext* context);
209
210 protected:
211 virtual void PersistCredentials(const std::string& account_id,
212 const std::string& refresh_token) OVERRIDE;
213
214 virtual void ClearPersistedCredentials(
215 const std::string& account_id) OVERRIDE;
208 }; 216 };
209 217
210 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 218 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698