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

Side by Side Diff: chrome/browser/autofill/autofill_interactive_uitest.cc

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (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 #include <string> 5 #include <string>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 }; 193 };
194 194
195 // AutofillInteractiveTest ---------------------------------------------------- 195 // AutofillInteractiveTest ----------------------------------------------------
196 196
197 class AutofillInteractiveTest : public InProcessBrowserTest { 197 class AutofillInteractiveTest : public InProcessBrowserTest {
198 protected: 198 protected:
199 AutofillInteractiveTest() : 199 AutofillInteractiveTest() :
200 key_press_event_sink_( 200 key_press_event_sink_(
201 base::Bind(&AutofillInteractiveTest::HandleKeyPressEvent, 201 base::Bind(&AutofillInteractiveTest::HandleKeyPressEvent,
202 base::Unretained(this))) {} 202 base::Unretained(this))) {}
203 virtual ~AutofillInteractiveTest() {} 203 ~AutofillInteractiveTest() override {}
204 204
205 // InProcessBrowserTest: 205 // InProcessBrowserTest:
206 void SetUpOnMainThread() override { 206 void SetUpOnMainThread() override {
207 // Don't want Keychain coming up on Mac. 207 // Don't want Keychain coming up on Mac.
208 test::DisableSystemServices(browser()->profile()->GetPrefs()); 208 test::DisableSystemServices(browser()->profile()->GetPrefs());
209 209
210 // Inject the test delegate into the AutofillManager. 210 // Inject the test delegate into the AutofillManager.
211 content::WebContents* web_contents = GetWebContents(); 211 content::WebContents* web_contents = GetWebContents();
212 ContentAutofillDriver* autofill_driver = 212 ContentAutofillDriver* autofill_driver =
213 ContentAutofillDriver::FromWebContents(web_contents); 213 ContentAutofillDriver::FromWebContents(web_contents);
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 ASSERT_TRUE(content::ExecuteScript( 1447 ASSERT_TRUE(content::ExecuteScript(
1448 GetRenderViewHost(), 1448 GetRenderViewHost(),
1449 "document.querySelector('input').autocomplete = 'off';")); 1449 "document.querySelector('input').autocomplete = 'off';"));
1450 1450
1451 // Press the down arrow to select the suggestion and attempt to preview the 1451 // Press the down arrow to select the suggestion and attempt to preview the
1452 // autofilled form. 1452 // autofilled form.
1453 SendKeyToPopupAndWait(ui::VKEY_DOWN); 1453 SendKeyToPopupAndWait(ui::VKEY_DOWN);
1454 } 1454 }
1455 1455
1456 } // namespace autofill 1456 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698