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

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

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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_DRIVER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "components/autofill/core/browser/autofill_driver.h" 11 #include "components/autofill/core/browser/autofill_driver.h"
12 12
13 namespace base { 13 namespace base {
14 class SequencedWorkerPoolOwner; 14 class SequencedWorkerPoolOwner;
15 } 15 }
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 // This class is only for easier writing of tests. 19 // This class is only for easier writing of tests.
20 class TestAutofillDriver : public AutofillDriver { 20 class TestAutofillDriver : public AutofillDriver {
21 public: 21 public:
22 TestAutofillDriver(); 22 TestAutofillDriver();
23 virtual ~TestAutofillDriver(); 23 virtual ~TestAutofillDriver();
24 24
25 // AutofillDriver implementation. 25 // AutofillDriver implementation.
26 virtual bool IsOffTheRecord() const OVERRIDE; 26 virtual bool IsOffTheRecord() const override;
27 // Returns the value passed in to the last call to |SetURLRequestContext()| 27 // Returns the value passed in to the last call to |SetURLRequestContext()|
28 // or NULL if that method has never been called. 28 // or NULL if that method has never been called.
29 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; 29 virtual net::URLRequestContextGetter* GetURLRequestContext() override;
30 virtual base::SequencedWorkerPool* GetBlockingPool() OVERRIDE; 30 virtual base::SequencedWorkerPool* GetBlockingPool() override;
31 virtual bool RendererIsAvailable() OVERRIDE; 31 virtual bool RendererIsAvailable() override;
32 virtual void SendFormDataToRenderer(int query_id, 32 virtual void SendFormDataToRenderer(int query_id,
33 RendererFormDataAction action, 33 RendererFormDataAction action,
34 const FormData& data) OVERRIDE; 34 const FormData& data) override;
35 virtual void PingRenderer() OVERRIDE; 35 virtual void PingRenderer() override;
36 virtual void SendAutofillTypePredictionsToRenderer( 36 virtual void SendAutofillTypePredictionsToRenderer(
37 const std::vector<FormStructure*>& forms) OVERRIDE; 37 const std::vector<FormStructure*>& forms) override;
38 virtual void RendererShouldAcceptDataListSuggestion( 38 virtual void RendererShouldAcceptDataListSuggestion(
39 const base::string16& value) OVERRIDE; 39 const base::string16& value) override;
40 virtual void RendererShouldClearFilledForm() OVERRIDE; 40 virtual void RendererShouldClearFilledForm() override;
41 virtual void RendererShouldClearPreviewedForm() OVERRIDE; 41 virtual void RendererShouldClearPreviewedForm() override;
42 virtual void RendererShouldFillFieldWithValue( 42 virtual void RendererShouldFillFieldWithValue(
43 const base::string16& value) OVERRIDE; 43 const base::string16& value) override;
44 virtual void RendererShouldPreviewFieldWithValue( 44 virtual void RendererShouldPreviewFieldWithValue(
45 const base::string16& value) OVERRIDE; 45 const base::string16& value) override;
46 46
47 // Methods that tests can use to specialize functionality. 47 // Methods that tests can use to specialize functionality.
48 48
49 // Sets the URL request context for this instance. |url_request_context| 49 // Sets the URL request context for this instance. |url_request_context|
50 // should outlive this instance. 50 // should outlive this instance.
51 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); 51 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context);
52 52
53 private: 53 private:
54 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_; 54 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_;
55 net::URLRequestContextGetter* url_request_context_; 55 net::URLRequestContextGetter* url_request_context_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); 57 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver);
58 }; 58 };
59 59
60 } // namespace autofill 60 } // namespace autofill
61 61
62 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 62 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/test_autofill_client.h ('k') | components/autofill/core/browser/test_personal_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698