OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_version_info.h" | 6 #include "chrome/common/chrome_version_info.h" |
7 #include "chrome/common/extensions/feature_switch.h" | 7 #include "chrome/common/extensions/feature_switch.h" |
8 #include "chrome/common/extensions/features/feature.h" | 8 #include "chrome/common/extensions/features/feature.h" |
9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 }; | 27 }; |
28 | 28 |
29 } // namespace | 29 } // namespace |
30 | 30 |
31 IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, TabCapture) { | 31 IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, TabCapture) { |
32 extensions::FeatureSwitch::ScopedOverride tab_capture( | 32 extensions::FeatureSwitch::ScopedOverride tab_capture( |
33 extensions::FeatureSwitch::tab_capture(), true); | 33 extensions::FeatureSwitch::tab_capture(), true); |
34 ASSERT_TRUE(RunExtensionTest("tab_capture/experimental")) << message_; | 34 ASSERT_TRUE(RunExtensionTest("tab_capture/experimental")) << message_; |
35 } | 35 } |
36 | 36 |
| 37 IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, TabCapturePermissionsTest) { |
| 38 extensions::FeatureSwitch::ScopedOverride tab_capture( |
| 39 extensions::FeatureSwitch::tab_capture(), true); |
| 40 ASSERT_TRUE(RunExtensionTest("tab_capture/permissions")) << message_; |
| 41 } |
| 42 |
37 } // namespace chrome | 43 } // namespace chrome |
OLD | NEW |