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

Side by Side Diff: components/payments/core/test_payment_request_delegate.h

Issue 2893943004: Refactor UKM interface for mojo-ification (Closed)
Patch Set: Fixed contextualsearch Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_ 5 #ifndef COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_
6 #define COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_ 6 #define COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/payments/core/payment_request_delegate.h" 10 #include "components/payments/core/payment_request_delegate.h"
(...skipping 15 matching lines...) Expand all
26 const std::string& GetApplicationLocale() const override; 26 const std::string& GetApplicationLocale() const override;
27 bool IsIncognito() const override; 27 bool IsIncognito() const override;
28 bool IsSslCertificateValid() override; 28 bool IsSslCertificateValid() override;
29 const GURL& GetLastCommittedURL() const override; 29 const GURL& GetLastCommittedURL() const override;
30 void DoFullCardRequest( 30 void DoFullCardRequest(
31 const autofill::CreditCard& credit_card, 31 const autofill::CreditCard& credit_card,
32 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> 32 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
33 result_delegate) override; 33 result_delegate) override;
34 AddressNormalizer* GetAddressNormalizer() override; 34 AddressNormalizer* GetAddressNormalizer() override;
35 autofill::RegionDataLoader* GetRegionDataLoader() override; 35 autofill::RegionDataLoader* GetRegionDataLoader() override;
36 ukm::UkmService* GetUkmService() override; 36 ukm::UkmRecorder* GetUkmRecorder() override;
37 std::string GetAuthenticatedEmail() const override; 37 std::string GetAuthenticatedEmail() const override;
38 PrefService* GetPrefService() override; 38 PrefService* GetPrefService() override;
39 39
40 TestAddressNormalizer* test_address_normalizer(); 40 TestAddressNormalizer* test_address_normalizer();
41 void DelayFullCardRequestCompletion(); 41 void DelayFullCardRequestCompletion();
42 void CompleteFullCardRequest(); 42 void CompleteFullCardRequest();
43 43
44 private: 44 private:
45 autofill::PersonalDataManager* personal_data_manager_; 45 autofill::PersonalDataManager* personal_data_manager_;
46 std::string locale_; 46 std::string locale_;
47 const GURL last_committed_url_; 47 const GURL last_committed_url_;
48 TestAddressNormalizer address_normalizer_; 48 TestAddressNormalizer address_normalizer_;
49 49
50 bool instantaneous_full_card_request_result_ = true; 50 bool instantaneous_full_card_request_result_ = true;
51 autofill::CreditCard full_card_request_card_; 51 autofill::CreditCard full_card_request_card_;
52 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> 52 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
53 full_card_result_delegate_; 53 full_card_result_delegate_;
54 DISALLOW_COPY_AND_ASSIGN(TestPaymentRequestDelegate); 54 DISALLOW_COPY_AND_ASSIGN(TestPaymentRequestDelegate);
55 }; 55 };
56 56
57 } // namespace payments 57 } // namespace payments
58 58
59 #endif // COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_ 59 #endif // COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/payments/core/payment_request_delegate.h ('k') | components/payments/core/test_payment_request_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698