OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/macros.h" |
5 #include "chrome/browser/chrome_notification_types.h" | 6 #include "chrome/browser/chrome_notification_types.h" |
6 #include "chrome/browser/chromeos/login/test/oobe_base_test.h" | 7 #include "chrome/browser/chromeos/login/test/oobe_base_test.h" |
7 #include "chrome/browser/chromeos/login/ui/webui_login_display.h" | 8 #include "chrome/browser/chromeos/login/ui/webui_login_display.h" |
8 #include "chromeos/chromeos_switches.h" | 9 #include "chromeos/chromeos_switches.h" |
9 #include "content/public/test/browser_test_utils.h" | 10 #include "content/public/test/browser_test_utils.h" |
10 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
11 | 12 |
12 namespace chromeos { | 13 namespace chromeos { |
13 | 14 |
14 class WebviewLoginTest : public OobeBaseTest { | 15 class WebviewLoginTest : public OobeBaseTest { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 } | 125 } |
125 | 126 |
126 IN_PROC_BROWSER_TEST_F(WebviewLoginTest, EmailPrefill) { | 127 IN_PROC_BROWSER_TEST_F(WebviewLoginTest, EmailPrefill) { |
127 WaitForGaiaPageLoad(); | 128 WaitForGaiaPageLoad(); |
128 JS().ExecuteAsync("Oobe.showSigninUI('user@example.com')"); | 129 JS().ExecuteAsync("Oobe.showSigninUI('user@example.com')"); |
129 WaitForGaiaPageReload(); | 130 WaitForGaiaPageReload(); |
130 EXPECT_EQ(fake_gaia_->prefilled_email(), "user@example.com"); | 131 EXPECT_EQ(fake_gaia_->prefilled_email(), "user@example.com"); |
131 } | 132 } |
132 | 133 |
133 } // namespace chromeos | 134 } // namespace chromeos |
OLD | NEW |