OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/api/permissions/permissions_api.h" | 5 #include "chrome/browser/extensions/api/permissions/permissions_api.h" |
6 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
7 #include "chrome/common/chrome_switches.h" | |
8 | 7 |
9 namespace { | 8 namespace { |
10 | 9 |
11 class UsbManualApiTest : public ExtensionApiTest { | 10 class UsbManualApiTest : public ExtensionApiTest { |
12 public: | |
13 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | |
14 ExtensionApiTest::SetUpCommandLine(command_line); | |
15 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); | |
16 } | |
17 }; | 11 }; |
18 | 12 |
19 } // namespace | 13 } // namespace |
20 | 14 |
21 IN_PROC_BROWSER_TEST_F(UsbManualApiTest, MANUAL_ListInterfaces) { | 15 IN_PROC_BROWSER_TEST_F(UsbManualApiTest, MANUAL_ListInterfaces) { |
22 extensions::PermissionsRequestFunction::SetIgnoreUserGestureForTests(true); | 16 extensions::PermissionsRequestFunction::SetIgnoreUserGestureForTests(true); |
23 extensions::PermissionsRequestFunction::SetAutoConfirmForTests(true); | 17 extensions::PermissionsRequestFunction::SetAutoConfirmForTests(true); |
24 ASSERT_TRUE(RunExtensionTest("usb_manual/list_interfaces")); | 18 ASSERT_TRUE(RunExtensionTest("usb_manual/list_interfaces")); |
25 } | 19 } |
OLD | NEW |