Index: chrome/browser/extensions/extension_fullscreen_apitest.cc |
diff --git a/chrome/browser/extensions/extension_fullscreen_apitest.cc b/chrome/browser/extensions/extension_fullscreen_apitest.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9bb9baa3da4ac37a618601af21e00debb4fe7433 |
--- /dev/null |
+++ b/chrome/browser/extensions/extension_fullscreen_apitest.cc |
@@ -0,0 +1,20 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/extensions/extension_apitest.h" |
+#include "chrome/test/base/ui_test_utils.h" |
+ |
+ |
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, |
+ ExtensionFullscreenAccessFail) { |
+ // Test that fullscreen can be accessed from an extension without permission. |
+ ASSERT_TRUE(RunPlatformAppTest("fullscreen/no_permission")) << message_; |
+} |
+ |
+// Disabled, a user gesture is required for fullscreen. http://crbug.com/174178 |
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, |
+ DISABLED_ExtensionFullscreenAccessPass) { |
+ // Test that fullscreen can be accessed from an extension with permission. |
+ ASSERT_TRUE(RunPlatformAppTest("fullscreen/has_permission")) << message_; |
+} |