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

Unified Diff: chrome/browser/chromeos/login/kiosk_browsertest.cc

Issue 320223002: Add device policy: Kiosk Virtual Keyboard Layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/kiosk_browsertest.cc
diff --git a/chrome/browser/chromeos/login/kiosk_browsertest.cc b/chrome/browser/chromeos/login/kiosk_browsertest.cc
index 30511e4dcde38c5860acfd91d2c5e20be4e39c92..228c8f3f08c7eb6f948406b8fe6eb4cffa3e9824 100644
--- a/chrome/browser/chromeos/login/kiosk_browsertest.cc
+++ b/chrome/browser/chromeos/login/kiosk_browsertest.cc
@@ -51,6 +51,7 @@
#include "google_apis/gaia/gaia_switches.h"
#include "google_apis/gaia/gaia_urls.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
+#include "ui/keyboard/keyboard_util.h"
namespace em = enterprise_management;
@@ -518,6 +519,17 @@ IN_PROC_BROWSER_TEST_F(KioskTest, InstallAndLaunchApp) {
WaitForAppLaunchSuccess();
}
+IN_PROC_BROWSER_TEST_F(KioskTest, EnableKioskVirtualKeyboard) {
+ // Keyboard disabled by default.
+ EXPECT_FALSE(keyboard::IsKeyboardEnabled());
+ // Mock policy layout.
+ CrosSettings::Get()->SetString(kKioskVirtualKeyboardLayout, "en-us");
+ StartAppLaunchFromLoginScreen(SimulateNetworkOnlineClosure());
+ WaitForAppLaunchSuccess();
+ // Keyboard should now be enabled.
+ EXPECT_TRUE(keyboard::IsKeyboardEnabled());
+}
+
IN_PROC_BROWSER_TEST_F(KioskTest, NotSignedInWithGAIAAccount) {
// Tests that the kiosk session is not considered to be logged in with a GAIA
// account.

Powered by Google App Engine
This is Rietveld 408576698