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

Side by Side Diff: chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc

Issue 681823004: 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 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 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "chrome/browser/signin/signin_promo.h" 6 #include "chrome/browser/signin/signin_promo.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "chrome/browser/ui/webui/signin/inline_login_ui.h" 9 #include "chrome/browser/ui/webui/signin/inline_login_ui.h"
10 #include "chrome/browser/ui/webui/signin/login_ui_service.h" 10 #include "chrome/browser/ui/webui/signin/login_ui_service.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 // Executes JavaScript code in the auth iframe hosted by gaia_auth extension. 173 // Executes JavaScript code in the auth iframe hosted by gaia_auth extension.
174 void ExecuteJsInSigninFrame(const std::string& js) { 174 void ExecuteJsInSigninFrame(const std::string& js) {
175 content::WebContents* web_contents = 175 content::WebContents* web_contents =
176 browser()->tab_strip_model()->GetActiveWebContents(); 176 browser()->tab_strip_model()->GetActiveWebContents();
177 ASSERT_TRUE(content::ExecuteScript(InlineLoginUI::GetAuthIframe( 177 ASSERT_TRUE(content::ExecuteScript(InlineLoginUI::GetAuthIframe(
178 web_contents, GURL(), "signin-frame"), js)); 178 web_contents, GURL(), "signin-frame"), js));
179 } 179 }
180 180
181 private: 181 private:
182 virtual void SetUp() override { 182 void SetUp() override {
183 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); 183 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
184 184
185 // EmbeddedTestServer spawns a thread to initialize socket. 185 // EmbeddedTestServer spawns a thread to initialize socket.
186 // Stop IO thread in preparation for fork and exec. 186 // Stop IO thread in preparation for fork and exec.
187 embedded_test_server()->StopThread(); 187 embedded_test_server()->StopThread();
188 188
189 InProcessBrowserTest::SetUp(); 189 InProcessBrowserTest::SetUp();
190 } 190 }
191 191
192 void SetUpCommandLine(CommandLine* command_line) override { 192 void SetUpCommandLine(CommandLine* command_line) override {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 std::string js = 320 std::string js =
321 "document.getElementById('Email').value = 'email';" 321 "document.getElementById('Email').value = 'email';"
322 "document.getElementById('Passwd').value = 'password';" 322 "document.getElementById('Passwd').value = 'password';"
323 "document.getElementById('signIn').click();"; 323 "document.getElementById('signIn').click();";
324 ExecuteJsInSigninFrame(js); 324 ExecuteJsInSigninFrame(js);
325 325
326 run_loop.Run(); 326 run_loop.Run();
327 base::MessageLoop::current()->RunUntilIdle(); 327 base::MessageLoop::current()->RunUntilIdle();
328 } 328 }
329 #endif // OS_CHROMEOS 329 #endif // OS_CHROMEOS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698