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

Side by Side Diff: chrome/browser/autofill/test_autofill_manager_delegate.h

Issue 12378055: Make autofill stop depending on InfoBarService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify test Created 7 years, 9 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/autofill/autofill_manager_delegate.h" 9 #include "chrome/browser/autofill/autofill_manager_delegate.h"
10 10
11 namespace autofill { 11 namespace autofill {
12 12
13 // This class is only for easier writing of testings. All pure virtual functions 13 // This class is only for easier writing of testings. All pure virtual functions
14 // have been giving empty methods. 14 // have been giving empty methods.
15 class TestAutofillManagerDelegate : public AutofillManagerDelegate { 15 class TestAutofillManagerDelegate : public AutofillManagerDelegate {
16 public: 16 public:
17 TestAutofillManagerDelegate(); 17 TestAutofillManagerDelegate();
18 virtual ~TestAutofillManagerDelegate(); 18 virtual ~TestAutofillManagerDelegate();
19 19
20 // AutofillManagerDelegate implementation. 20 // AutofillManagerDelegate implementation.
21 virtual InfoBarService* GetInfoBarService() OVERRIDE;
22 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; 21 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE;
23 virtual PrefService* GetPrefs() OVERRIDE; 22 virtual PrefService* GetPrefs() OVERRIDE;
24 virtual ProfileSyncServiceBase* GetProfileSyncService() OVERRIDE; 23 virtual ProfileSyncServiceBase* GetProfileSyncService() OVERRIDE;
25 virtual void HideRequestAutocompleteDialog() OVERRIDE; 24 virtual void HideRequestAutocompleteDialog() OVERRIDE;
26 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; 25 virtual bool IsSavingPasswordsEnabled() const OVERRIDE;
27 virtual void OnAutocheckoutError() OVERRIDE; 26 virtual void OnAutocheckoutError() OVERRIDE;
28 virtual void ShowAutofillSettings() OVERRIDE; 27 virtual void ShowAutofillSettings() OVERRIDE;
28 virtual void ConfirmImportCC(const AutofillMetrics& metric_logger,
29 const CreditCard& credit_card,
30 const base::Closure& import_callback) OVERRIDE;
29 virtual void ShowPasswordGenerationBubble( 31 virtual void ShowPasswordGenerationBubble(
30 const gfx::Rect& bounds, 32 const gfx::Rect& bounds,
31 const content::PasswordForm& form, 33 const content::PasswordForm& form,
32 autofill::PasswordGenerator* generator) OVERRIDE; 34 autofill::PasswordGenerator* generator) OVERRIDE;
33 virtual void ShowAutocheckoutBubble( 35 virtual void ShowAutocheckoutBubble(
34 const gfx::RectF& bounding_box, 36 const gfx::RectF& bounding_box,
35 const gfx::NativeView& native_view, 37 const gfx::NativeView& native_view,
36 const base::Closure& callback) OVERRIDE; 38 const base::Closure& callback) OVERRIDE;
37 virtual void ShowRequestAutocompleteDialog( 39 virtual void ShowRequestAutocompleteDialog(
38 const FormData& form, 40 const FormData& form,
(...skipping 12 matching lines...) Expand all
51 virtual void HideAutofillPopup() OVERRIDE; 53 virtual void HideAutofillPopup() OVERRIDE;
52 virtual void UpdateProgressBar(double value) OVERRIDE; 54 virtual void UpdateProgressBar(double value) OVERRIDE;
53 55
54 private: 56 private:
55 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); 57 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate);
56 }; 58 };
57 59
58 } // namespace autofill 60 } // namespace autofill
59 61
60 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 62 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698