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

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

Issue 1152783004: Browser test for guest signin button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698