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

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

Issue 2010463002: Mocker for OSCrypt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated doc Created 4 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
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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 251 }
252 252
253 void TearDownOnMainThread() override { 253 void TearDownOnMainThread() override {
254 // Make sure to close any showing popups prior to tearing down the UI. 254 // Make sure to close any showing popups prior to tearing down the UI.
255 content::WebContents* web_contents = GetWebContents(); 255 content::WebContents* web_contents = GetWebContents();
256 AutofillManager* autofill_manager = 256 AutofillManager* autofill_manager =
257 ContentAutofillDriverFactory::FromWebContents(web_contents) 257 ContentAutofillDriverFactory::FromWebContents(web_contents)
258 ->DriverForFrame(web_contents->GetMainFrame()) 258 ->DriverForFrame(web_contents->GetMainFrame())
259 ->autofill_manager(); 259 ->autofill_manager();
260 autofill_manager->client()->HideAutofillPopup(); 260 autofill_manager->client()->HideAutofillPopup();
261 test::ReenableSystemServices();
261 } 262 }
262 263
263 content::WebContents* GetWebContents() { 264 content::WebContents* GetWebContents() {
264 return browser()->tab_strip_model()->GetActiveWebContents(); 265 return browser()->tab_strip_model()->GetActiveWebContents();
265 } 266 }
266 267
267 content::RenderViewHost* GetRenderViewHost() { 268 content::RenderViewHost* GetRenderViewHost() {
268 return GetWebContents()->GetRenderViewHost(); 269 return GetWebContents()->GetRenderViewHost();
269 } 270 }
270 271
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), 1678 ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(),
1678 GURL(std::string(kDataURIPrefix) + kTestPasswordFormString))); 1679 GURL(std::string(kDataURIPrefix) + kTestPasswordFormString)));
1679 ASSERT_TRUE(content::ExecuteScript( 1680 ASSERT_TRUE(content::ExecuteScript(
1680 GetRenderViewHost(), 1681 GetRenderViewHost(),
1681 "document.getElementById('user').value = 'user';")); 1682 "document.getElementById('user').value = 'user';"));
1682 FocusFieldByName("password"); 1683 FocusFieldByName("password");
1683 PasteStringAndWait("foobar"); 1684 PasteStringAndWait("foobar");
1684 } 1685 }
1685 1686
1686 } // namespace autofill 1687 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_browsertest.cc ('k') | chrome/browser/browsing_data/browsing_data_remover_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698