OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
6 #include "chrome/common/chrome_switches.h" | 6 #include "chrome/common/chrome_switches.h" |
7 | 7 |
8 class ExperimentalApiTest : public ExtensionApiTest { | 8 class ExperimentalApiTest : public ExtensionApiTest { |
9 public: | 9 public: |
10 void SetUpCommandLine(CommandLine* command_line) { | 10 void SetUpCommandLine(CommandLine* command_line) { |
(...skipping 11 matching lines...) Expand all Loading... |
22 // ExtensionBrowserTest doesn't actually fail, it just times out. To fix this | 22 // ExtensionBrowserTest doesn't actually fail, it just times out. To fix this |
23 // I'll need to add an EXTENSION_LOAD_ERROR notification, which is probably | 23 // I'll need to add an EXTENSION_LOAD_ERROR notification, which is probably |
24 // too much for the branch. I'll enable this on trunk later. | 24 // too much for the branch. I'll enable this on trunk later. |
25 //ASSERT_FALSE(RunExtensionTest("permissions/enabled"))) << message_; | 25 //ASSERT_FALSE(RunExtensionTest("permissions/enabled"))) << message_; |
26 } | 26 } |
27 | 27 |
28 IN_PROC_BROWSER_TEST_F(ExperimentalApiTest, PermissionsSucceed) { | 28 IN_PROC_BROWSER_TEST_F(ExperimentalApiTest, PermissionsSucceed) { |
29 ASSERT_TRUE(RunExtensionTest("permissions/enabled")) << message_; | 29 ASSERT_TRUE(RunExtensionTest("permissions/enabled")) << message_; |
30 } | 30 } |
31 | 31 |
| 32 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ExperimentalPermissionsFail) { |
| 33 // At the time this test is being created, there is no experimental |
| 34 // function that will not be graduating soon, and does not require a |
| 35 // tab id as an argument. So, we need the tab permission to get |
| 36 // a tab id. |
| 37 ASSERT_TRUE(RunExtensionTest("permissions/experimental_disabled")) |
| 38 << message_; |
| 39 } |
OLD | NEW |