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

Side by Side Diff: components/autofill/core/browser/test_autofill_manager_delegate.h

Issue 23033016: Remove autocheckout code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more deletes, and Ilya review. 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "components/autofill/core/browser/autocheckout_bubble_state.h"
11 #include "components/autofill/core/browser/autofill_manager_delegate.h" 10 #include "components/autofill/core/browser/autofill_manager_delegate.h"
12 11
13 namespace autofill { 12 namespace autofill {
14 13
15 // This class is only for easier writing of testings. All pure virtual functions 14 // This class is only for easier writing of testings. All pure virtual functions
16 // have been giving empty methods. 15 // have been giving empty methods.
17 class TestAutofillManagerDelegate : public AutofillManagerDelegate { 16 class TestAutofillManagerDelegate : public AutofillManagerDelegate {
18 public: 17 public:
19 TestAutofillManagerDelegate(); 18 TestAutofillManagerDelegate();
20 virtual ~TestAutofillManagerDelegate(); 19 virtual ~TestAutofillManagerDelegate();
21 20
22 // AutofillManagerDelegate implementation. 21 // AutofillManagerDelegate implementation.
23 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; 22 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE;
24 virtual PrefService* GetPrefs() OVERRIDE; 23 virtual PrefService* GetPrefs() OVERRIDE;
25 virtual autocheckout::WhitelistManager*
26 GetAutocheckoutWhitelistManager() const OVERRIDE;
27 virtual void HideRequestAutocompleteDialog() OVERRIDE; 24 virtual void HideRequestAutocompleteDialog() OVERRIDE;
28 virtual void OnAutocheckoutError() OVERRIDE;
29 virtual void OnAutocheckoutSuccess() OVERRIDE;
30 virtual void ShowAutofillSettings() OVERRIDE; 25 virtual void ShowAutofillSettings() OVERRIDE;
31 virtual void ConfirmSaveCreditCard( 26 virtual void ConfirmSaveCreditCard(
32 const AutofillMetrics& metric_logger, 27 const AutofillMetrics& metric_logger,
33 const CreditCard& credit_card, 28 const CreditCard& credit_card,
34 const base::Closure& save_card_callback) OVERRIDE; 29 const base::Closure& save_card_callback) OVERRIDE;
35 virtual bool ShowAutocheckoutBubble(
36 const gfx::RectF& bounding_box,
37 bool is_google_user,
38 const base::Callback<void(AutocheckoutBubbleState)>& callback) OVERRIDE;
39 virtual void HideAutocheckoutBubble() OVERRIDE;
40 virtual void ShowRequestAutocompleteDialog( 30 virtual void ShowRequestAutocompleteDialog(
41 const FormData& form, 31 const FormData& form,
42 const GURL& source_url, 32 const GURL& source_url,
43 DialogType dialog_type, 33 DialogType dialog_type,
44 const base::Callback<void(const FormStructure*, 34 const base::Callback<void(const FormStructure*,
45 const std::string&)>& callback) OVERRIDE; 35 const std::string&)>& callback) OVERRIDE;
46 virtual void ShowAutofillPopup( 36 virtual void ShowAutofillPopup(
47 const gfx::RectF& element_bounds, 37 const gfx::RectF& element_bounds,
48 base::i18n::TextDirection text_direction, 38 base::i18n::TextDirection text_direction,
49 const std::vector<base::string16>& values, 39 const std::vector<base::string16>& values,
50 const std::vector<base::string16>& labels, 40 const std::vector<base::string16>& labels,
51 const std::vector<base::string16>& icons, 41 const std::vector<base::string16>& icons,
52 const std::vector<int>& identifiers, 42 const std::vector<int>& identifiers,
53 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; 43 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE;
54 virtual void UpdateAutofillPopupDataListValues( 44 virtual void UpdateAutofillPopupDataListValues(
55 const std::vector<base::string16>& values, 45 const std::vector<base::string16>& values,
56 const std::vector<base::string16>& labels) OVERRIDE; 46 const std::vector<base::string16>& labels) OVERRIDE;
57 virtual void HideAutofillPopup() OVERRIDE; 47 virtual void HideAutofillPopup() OVERRIDE;
58 virtual bool IsAutocompleteEnabled() OVERRIDE; 48 virtual bool IsAutocompleteEnabled() OVERRIDE;
59 49
60 virtual void AddAutocheckoutStep(AutocheckoutStepType step_type) OVERRIDE;
61 virtual void UpdateAutocheckoutStep(
62 AutocheckoutStepType step_type,
63 AutocheckoutStepStatus step_status) OVERRIDE;
64
65 private: 50 private:
66 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); 51 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate);
67 }; 52 };
68 53
69 } // namespace autofill 54 } // namespace autofill
70 55
71 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 56 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698