// Copyright (c) 2012 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,
                       ExtensionPointerLockAccessFail) {
  // Test that pointer lock cannot be accessed from an extension without
  // permission.
  ASSERT_TRUE(RunPlatformAppTest("pointer_lock/no_permission")) << message_;
}

// http://crbug.com/223447
#if defined(OS_LINUX)
#define MAYBE_ExtensionPointerLockAccessPass \
    DISABLED_ExtensionPointerLockAccessPass
#else
#define MAYBE_ExtensionPointerLockAccessPass ExtensionPointerLockAccessPass
#endif
IN_PROC_BROWSER_TEST_F(ExtensionApiTest,
                       MAYBE_ExtensionPointerLockAccessPass) {
  // Test that pointer lock can be accessed from an extension with permission.
  ASSERT_TRUE(RunPlatformAppTest("pointer_lock/has_permission")) << message_;
}

// Copyright (c) 2012 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,
                       ExtensionPointerLockAccessFail) {
  // Test that pointer lock cannot be accessed from an extension without
  // permission.
  ASSERT_TRUE(RunPlatformAppTest("pointer_lock/no_permission")) << message_;
}

IN_PROC_BROWSER_TEST_F(ExtensionApiTest,
                       ExtensionPointerLockAccessPass) {
  // Test that pointer lock can be accessed from an extension with permission.
  ASSERT_TRUE(RunPlatformAppTest("pointer_lock/has_permission")) << message_;
}

--- 
+++ 
@@ -13,8 +13,15 @@
   ASSERT_TRUE(RunPlatformAppTest("pointer_lock/no_permission")) << message_;
 }
 
+// http://crbug.com/223447
+#if defined(OS_LINUX)
+#define MAYBE_ExtensionPointerLockAccessPass \
+    DISABLED_ExtensionPointerLockAccessPass
+#else
+#define MAYBE_ExtensionPointerLockAccessPass ExtensionPointerLockAccessPass
+#endif
 IN_PROC_BROWSER_TEST_F(ExtensionApiTest,
-                       ExtensionPointerLockAccessPass) {
+                       MAYBE_ExtensionPointerLockAccessPass) {
   // Test that pointer lock can be accessed from an extension with permission.
   ASSERT_TRUE(RunPlatformAppTest("pointer_lock/has_permission")) << message_;
 }
Disable test that is failing on linux trybots.

BUG=223447
NOTRY=True
TBR=jeremya@chromium.org


Review URL: https://chromiumcodereview.appspot.com/13031005

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@190294 0039d316-1c4b-4281-b951-d872f2087c98
