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

Unified Diff: chrome/browser/browser_uitest.cc

Issue 244003: Kiosk Mode implementation (Closed)
Patch Set: Finally fix MACOSX Created 11 years, 1 month 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
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/browser_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_uitest.cc
diff --git a/chrome/browser/browser_uitest.cc b/chrome/browser/browser_uitest.cc
index 0fd635296ec05e5269f7f3694a4e4ed4c7785f39..94381ecf534af18d62985316326ba96478b22d84 100644
--- a/chrome/browser/browser_uitest.cc
+++ b/chrome/browser/browser_uitest.cc
@@ -288,4 +288,30 @@ TEST_F(SecurityTest, DisallowFileUrlUniversalAccessTest) {
ASSERT_STREQ("Disallowed", value.c_str());
}
+#if !defined(OS_MACOSX)
+class KioskModeTest : public UITest {
+ public:
+ KioskModeTest() {
+ launch_arguments_.AppendSwitch(switches::kKioskMode);
+ }
+};
+
+TEST_F(KioskModeTest, EnableKioskModeTest) {
+ // Load a dummy url.
+ FilePath test_file(test_data_directory_);
+ test_file = test_file.AppendASCII("title1.html");
+
+ // Verify that the window is present.
+ scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0));
+ ASSERT_TRUE(browser.get());
+
+ // Check if browser is in fullscreen mode.
+ bool is_visible;
+ ASSERT_TRUE(browser->IsFullscreen(&is_visible));
+ EXPECT_TRUE(is_visible);
+ ASSERT_TRUE(browser->IsFullscreenBubbleVisible(&is_visible));
+ EXPECT_FALSE(is_visible);
+}
+#endif
+
} // namespace
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698