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

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

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "components/autofill/core/browser/autofill_manager_delegate.h" 12 #include "components/autofill/core/browser/autofill_client.h"
13 13
14 namespace autofill { 14 namespace autofill {
15 15
16 // This class is for easier writing of tests. 16 // This class is for easier writing of tests.
17 class TestAutofillManagerDelegate : public AutofillManagerDelegate { 17 class TestAutofillClient : public AutofillClient {
18 public: 18 public:
19 TestAutofillManagerDelegate(); 19 TestAutofillClient();
20 virtual ~TestAutofillManagerDelegate(); 20 virtual ~TestAutofillClient();
21 21
22 // AutofillManagerDelegate implementation. 22 // AutofillClient implementation.
23 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; 23 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE;
24 virtual scoped_refptr<AutofillWebDataService> 24 virtual scoped_refptr<AutofillWebDataService> GetDatabase() OVERRIDE;
25 GetDatabase() OVERRIDE;
26 virtual PrefService* GetPrefs() OVERRIDE; 25 virtual PrefService* GetPrefs() OVERRIDE;
27 virtual void HideRequestAutocompleteDialog() OVERRIDE; 26 virtual void HideRequestAutocompleteDialog() OVERRIDE;
28 virtual void ShowAutofillSettings() OVERRIDE; 27 virtual void ShowAutofillSettings() OVERRIDE;
29 virtual void ConfirmSaveCreditCard( 28 virtual void ConfirmSaveCreditCard(
30 const AutofillMetrics& metric_logger, 29 const AutofillMetrics& metric_logger,
31 const base::Closure& save_card_callback) OVERRIDE; 30 const base::Closure& save_card_callback) OVERRIDE;
32 virtual void ShowRequestAutocompleteDialog( 31 virtual void ShowRequestAutocompleteDialog(
33 const FormData& form, 32 const FormData& form,
34 const GURL& source_url, 33 const GURL& source_url,
35 const ResultCallback& callback) OVERRIDE; 34 const ResultCallback& callback) OVERRIDE;
(...skipping 17 matching lines...) Expand all
53 virtual void DidFillOrPreviewField( 52 virtual void DidFillOrPreviewField(
54 const base::string16& autofilled_value, 53 const base::string16& autofilled_value,
55 const base::string16& profile_full_name) OVERRIDE; 54 const base::string16& profile_full_name) OVERRIDE;
56 55
57 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } 56 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); }
58 57
59 private: 58 private:
60 // NULL by default. 59 // NULL by default.
61 scoped_ptr<PrefService> prefs_; 60 scoped_ptr<PrefService> prefs_;
62 61
63 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); 62 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient);
64 }; 63 };
65 64
66 } // namespace autofill 65 } // namespace autofill
67 66
68 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 67 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698