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

Side by Side Diff: chrome/browser/chromeos/login/login_manager_test.cc

Issue 2935623003: Merge "cros: Move wallpaper after login screen is gone" (Closed)
Patch Set: Created 3 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 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 "chrome/browser/chromeos/login/login_manager_test.h" 5 #include "chrome/browser/chromeos/login/login_manager_test.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // SetUpCommandLine(). 89 // SetUpCommandLine().
90 ASSERT_TRUE(gaia_https_forwarder_.Initialize( 90 ASSERT_TRUE(gaia_https_forwarder_.Initialize(
91 kGAIAHost, embedded_test_server()->base_url())); 91 kGAIAHost, embedded_test_server()->base_url()));
92 92
93 MixinBasedBrowserTest::SetUp(); 93 MixinBasedBrowserTest::SetUp();
94 } 94 }
95 95
96 void LoginManagerTest::TearDownOnMainThread() { 96 void LoginManagerTest::TearDownOnMainThread() {
97 MixinBasedBrowserTest::TearDownOnMainThread(); 97 MixinBasedBrowserTest::TearDownOnMainThread();
98 if (LoginDisplayHost::default_host()) 98 if (LoginDisplayHost::default_host())
99 LoginDisplayHost::default_host()->Finalize(); 99 LoginDisplayHost::default_host()->Finalize(base::OnceClosure());
100 base::RunLoop().RunUntilIdle(); 100 base::RunLoop().RunUntilIdle();
101 EXPECT_TRUE(embedded_test_server()->ShutdownAndWaitUntilComplete()); 101 EXPECT_TRUE(embedded_test_server()->ShutdownAndWaitUntilComplete());
102 } 102 }
103 103
104 void LoginManagerTest::SetUpCommandLine(base::CommandLine* command_line) { 104 void LoginManagerTest::SetUpCommandLine(base::CommandLine* command_line) {
105 command_line->AppendSwitch(chromeos::switches::kLoginManager); 105 command_line->AppendSwitch(chromeos::switches::kLoginManager);
106 command_line->AppendSwitch(chromeos::switches::kForceLoginManagerInTests); 106 command_line->AppendSwitch(chromeos::switches::kForceLoginManagerInTests);
107 107
108 const GURL gaia_url = gaia_https_forwarder_.GetURLForSSLHost(std::string()); 108 const GURL gaia_url = gaia_https_forwarder_.GetURLForSSLHost(std::string());
109 command_line->AppendSwitchASCII(::switches::kGaiaUrl, gaia_url.spec()); 109 command_line->AppendSwitchASCII(::switches::kGaiaUrl, gaia_url.spec());
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 EXPECT_TRUE(host != NULL); 223 EXPECT_TRUE(host != NULL);
224 224
225 content::WebContents* web_contents = 225 content::WebContents* web_contents =
226 host->GetWebUILoginView()->GetWebContents(); 226 host->GetWebUILoginView()->GetWebContents();
227 EXPECT_TRUE(web_contents != NULL); 227 EXPECT_TRUE(web_contents != NULL);
228 set_web_contents(web_contents); 228 set_web_contents(web_contents);
229 js_checker_.set_web_contents(web_contents); 229 js_checker_.set_web_contents(web_contents);
230 } 230 }
231 231
232 } // namespace chromeos 232 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | chrome/browser/chromeos/login/oobe_localization_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698