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

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

Issue 71683003: Have AutofillManagerDelegate supply the AutofillWebDataService to core code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 7 years, 1 month 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 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/autofill_manager_delegate.h" 10 #include "components/autofill/core/browser/autofill_manager_delegate.h"
11 11
12 namespace autofill { 12 namespace autofill {
13 13
14 // 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
15 // have been giving empty methods. 15 // have been giving empty methods.
16 class TestAutofillManagerDelegate : public AutofillManagerDelegate { 16 class TestAutofillManagerDelegate : public AutofillManagerDelegate {
17 public: 17 public:
18 TestAutofillManagerDelegate(); 18 TestAutofillManagerDelegate();
19 virtual ~TestAutofillManagerDelegate(); 19 virtual ~TestAutofillManagerDelegate();
20 20
21 // AutofillManagerDelegate implementation. 21 // AutofillManagerDelegate implementation.
22 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; 22 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE;
23 virtual scoped_refptr<AutofillWebDataService>
24 GetDatabase() OVERRIDE;
23 virtual PrefService* GetPrefs() OVERRIDE; 25 virtual PrefService* GetPrefs() OVERRIDE;
24 virtual void HideRequestAutocompleteDialog() OVERRIDE; 26 virtual void HideRequestAutocompleteDialog() OVERRIDE;
25 virtual void ShowAutofillSettings() OVERRIDE; 27 virtual void ShowAutofillSettings() OVERRIDE;
26 virtual void ConfirmSaveCreditCard( 28 virtual void ConfirmSaveCreditCard(
27 const AutofillMetrics& metric_logger, 29 const AutofillMetrics& metric_logger,
28 const base::Closure& save_card_callback) OVERRIDE; 30 const base::Closure& save_card_callback) OVERRIDE;
29 virtual void ShowRequestAutocompleteDialog( 31 virtual void ShowRequestAutocompleteDialog(
30 const FormData& form, 32 const FormData& form,
31 const GURL& source_url, 33 const GURL& source_url,
32 const base::Callback<void(const FormStructure*)>& callback) OVERRIDE; 34 const base::Callback<void(const FormStructure*)>& callback) OVERRIDE;
(...skipping 14 matching lines...) Expand all
47 virtual void DetectAccountCreationForms( 49 virtual void DetectAccountCreationForms(
48 const std::vector<autofill::FormStructure*>& forms) OVERRIDE; 50 const std::vector<autofill::FormStructure*>& forms) OVERRIDE;
49 51
50 private: 52 private:
51 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); 53 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate);
52 }; 54 };
53 55
54 } // namespace autofill 56 } // namespace autofill
55 57
56 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 58 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698