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

Unified Diff: components/autofill/content/browser/request_autocomplete_manager_unittest.cc

Issue 666133002: Standardize usage of virtual/override/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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/content/browser/request_autocomplete_manager_unittest.cc
diff --git a/components/autofill/content/browser/request_autocomplete_manager_unittest.cc b/components/autofill/content/browser/request_autocomplete_manager_unittest.cc
index f4a6c8ee67632078d6c46b3bcd2bed034505b76e..2b721434911ccb7f86fbb16e5550dc998227f2ec 100644
--- a/components/autofill/content/browser/request_autocomplete_manager_unittest.cc
+++ b/components/autofill/content/browser/request_autocomplete_manager_unittest.cc
@@ -23,9 +23,9 @@ class TestAutofillManager : public AutofillManager {
TestAutofillManager(AutofillDriver* driver, AutofillClient* client)
: AutofillManager(driver, client, kAppLocale, kDownloadState),
autofill_enabled_(true) {}
- virtual ~TestAutofillManager() {}
+ ~TestAutofillManager() override {}
- virtual bool IsAutofillEnabled() const override { return autofill_enabled_; }
+ bool IsAutofillEnabled() const override { return autofill_enabled_; }
void set_autofill_enabled(bool autofill_enabled) {
autofill_enabled_ = autofill_enabled;
@@ -41,12 +41,11 @@ class CustomTestAutofillClient : public TestAutofillClient {
public:
CustomTestAutofillClient() : should_simulate_success_(true) {}
- virtual ~CustomTestAutofillClient() {}
+ ~CustomTestAutofillClient() override {}
- virtual void ShowRequestAutocompleteDialog(
- const FormData& form,
- const GURL& source_url,
- const ResultCallback& callback) override {
+ void ShowRequestAutocompleteDialog(const FormData& form,
+ const GURL& source_url,
+ const ResultCallback& callback) override {
if (should_simulate_success_) {
FormStructure form_structure(form);
callback.Run(
@@ -78,7 +77,7 @@ class TestContentAutofillDriver : public ContentAutofillDriver {
SetAutofillManager(make_scoped_ptr<AutofillManager>(
new TestAutofillManager(this, client)));
}
- virtual ~TestContentAutofillDriver() {}
+ ~TestContentAutofillDriver() override {}
TestAutofillManager* mock_autofill_manager() {
return static_cast<TestAutofillManager*>(autofill_manager());

Powered by Google App Engine
This is Rietveld 408576698