| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_ | 4 #ifndef CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_ |
| 5 #define CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_ | 5 #define CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_ |
| 6 | 6 |
| 7 #include "components/signin/core/browser/account_reconcilor.h" | 7 #include "components/signin/core/browser/account_reconcilor.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 class BrowserContext; | 10 class BrowserContext; |
| 11 } | 11 } |
| 12 | 12 |
| 13 class FakeAccountReconcilor : public AccountReconcilor { | 13 class FakeAccountReconcilor : public AccountReconcilor { |
| 14 public: | 14 public: |
| 15 FakeAccountReconcilor(ProfileOAuth2TokenService* token_service, | 15 FakeAccountReconcilor(ProfileOAuth2TokenService* token_service, |
| 16 SigninManagerBase* signin_manager, | 16 SigninManagerBase* signin_manager, |
| 17 SigninClient* client); | 17 SigninClient* client); |
| 18 | 18 |
| 19 // Helper function to be used with KeyedService::SetTestingFactory(). | 19 // Helper function to be used with KeyedService::SetTestingFactory(). |
| 20 static KeyedService* Build(content::BrowserContext* context); | 20 static KeyedService* Build(content::BrowserContext* context); |
| 21 | 21 |
| 22 protected: | 22 protected: |
| 23 // Override this method to perform no network call, instead the callback | 23 // Override this method to perform no network call, instead the callback |
| 24 // is called immediately | 24 // is called immediately |
| 25 virtual void GetAccountsFromCookie(GetAccountsFromCookieCallback callback) | 25 void GetAccountsFromCookie(GetAccountsFromCookieCallback callback) override; |
| 26 override; | |
| 27 | 26 |
| 28 DISALLOW_COPY_AND_ASSIGN(FakeAccountReconcilor); | 27 DISALLOW_COPY_AND_ASSIGN(FakeAccountReconcilor); |
| 29 }; | 28 }; |
| 30 | 29 |
| 31 #endif // CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_ | 30 #endif // CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_ |
| OLD | NEW |