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 "chrome/browser/chrome_notification_types.h" | 5 #include "chrome/browser/chrome_notification_types.h" |
6 #include "chrome/browser/chromeos/login/test/oobe_base_test.h" | 6 #include "chrome/browser/chromeos/login/test/oobe_base_test.h" |
7 #include "chrome/browser/chromeos/login/ui/webui_login_display.h" | 7 #include "chrome/browser/chromeos/login/ui/webui_login_display.h" |
8 #include "chromeos/chromeos_switches.h" | 8 #include "chromeos/chromeos_switches.h" |
9 #include "content/public/test/browser_test_utils.h" | 9 #include "content/public/test/browser_test_utils.h" |
10 #include "content/public/test/test_utils.h" | 10 #include "content/public/test/test_utils.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 content::WindowedNotificationObserver session_start_waiter( | 72 content::WindowedNotificationObserver session_start_waiter( |
73 chrome::NOTIFICATION_SESSION_STARTED, | 73 chrome::NOTIFICATION_SESSION_STARTED, |
74 content::NotificationService::AllSources()); | 74 content::NotificationService::AllSources()); |
75 | 75 |
76 SetSignFormField("password", OobeBaseTest::kFakeUserPassword); | 76 SetSignFormField("password", OobeBaseTest::kFakeUserPassword); |
77 ExecuteJsInSigninFrame("document.getElementById('nextButton').click();"); | 77 ExecuteJsInSigninFrame("document.getElementById('nextButton').click();"); |
78 | 78 |
79 session_start_waiter.Wait(); | 79 session_start_waiter.Wait(); |
80 } | 80 } |
81 | 81 |
| 82 IN_PROC_BROWSER_TEST_F(WebviewLoginTest, AllowGuest) { |
| 83 WaitForGaiaPageLoad(); |
| 84 JsExpect("!$('guest-user-header-bar-item').hidden"); |
| 85 chromeos::CrosSettings::Get()->SetBoolean(kAccountsPrefAllowGuest, false); |
| 86 JsExpect("$('guest-user-header-bar-item').hidden"); |
| 87 } |
| 88 |
82 } // namespace chromeos | 89 } // namespace chromeos |
OLD | NEW |