| 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 | 4 |
| 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public: | 26 public: |
| 27 TestAutofillClient(); | 27 TestAutofillClient(); |
| 28 ~TestAutofillClient() override; | 28 ~TestAutofillClient() override; |
| 29 | 29 |
| 30 // AutofillClient implementation. | 30 // AutofillClient implementation. |
| 31 PersonalDataManager* GetPersonalDataManager() override; | 31 PersonalDataManager* GetPersonalDataManager() override; |
| 32 scoped_refptr<AutofillWebDataService> GetDatabase() override; | 32 scoped_refptr<AutofillWebDataService> GetDatabase() override; |
| 33 PrefService* GetPrefs() override; | 33 PrefService* GetPrefs() override; |
| 34 syncer::SyncService* GetSyncService() override; | 34 syncer::SyncService* GetSyncService() override; |
| 35 IdentityProvider* GetIdentityProvider() override; | 35 IdentityProvider* GetIdentityProvider() override; |
| 36 rappor::RapporService* GetRapporService() override; | 36 rappor::RapporServiceImpl* GetRapporServiceImpl() override; |
| 37 void ShowAutofillSettings() override; | 37 void ShowAutofillSettings() override; |
| 38 void ShowUnmaskPrompt(const CreditCard& card, | 38 void ShowUnmaskPrompt(const CreditCard& card, |
| 39 UnmaskCardReason reason, | 39 UnmaskCardReason reason, |
| 40 base::WeakPtr<CardUnmaskDelegate> delegate) override; | 40 base::WeakPtr<CardUnmaskDelegate> delegate) override; |
| 41 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 41 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
| 42 void ConfirmSaveCreditCardLocally(const CreditCard& card, | 42 void ConfirmSaveCreditCardLocally(const CreditCard& card, |
| 43 const base::Closure& callback) override; | 43 const base::Closure& callback) override; |
| 44 void ConfirmSaveCreditCardToCloud( | 44 void ConfirmSaveCreditCardToCloud( |
| 45 const CreditCard& card, | 45 const CreditCard& card, |
| 46 std::unique_ptr<base::DictionaryValue> legal_message, | 46 std::unique_ptr<base::DictionaryValue> legal_message, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 68 const base::string16& profile_full_name) override; | 68 const base::string16& profile_full_name) override; |
| 69 void OnFirstUserGestureObserved() override; | 69 void OnFirstUserGestureObserved() override; |
| 70 bool IsContextSecure(const GURL& form_origin) override; | 70 bool IsContextSecure(const GURL& form_origin) override; |
| 71 bool ShouldShowSigninPromo() override; | 71 bool ShouldShowSigninPromo() override; |
| 72 void StartSigninFlow() override; | 72 void StartSigninFlow() override; |
| 73 | 73 |
| 74 void SetPrefs(std::unique_ptr<PrefService> prefs) { | 74 void SetPrefs(std::unique_ptr<PrefService> prefs) { |
| 75 prefs_ = std::move(prefs); | 75 prefs_ = std::move(prefs); |
| 76 } | 76 } |
| 77 | 77 |
| 78 rappor::TestRapporService* test_rappor_service() { | 78 rappor::TestRapporServiceImpl* test_rappor_service() { |
| 79 return rappor_service_.get(); | 79 return rappor_service_.get(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 // NULL by default. | 83 // NULL by default. |
| 84 std::unique_ptr<PrefService> prefs_; | 84 std::unique_ptr<PrefService> prefs_; |
| 85 std::unique_ptr<FakeOAuth2TokenService> token_service_; | 85 std::unique_ptr<FakeOAuth2TokenService> token_service_; |
| 86 std::unique_ptr<FakeIdentityProvider> identity_provider_; | 86 std::unique_ptr<FakeIdentityProvider> identity_provider_; |
| 87 std::unique_ptr<rappor::TestRapporService> rappor_service_; | 87 std::unique_ptr<rappor::TestRapporServiceImpl> rappor_service_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); | 89 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace autofill | 92 } // namespace autofill |
| 93 | 93 |
| 94 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 94 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
| OLD | NEW |