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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |