Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Side by Side Diff: chrome/browser/extensions/api/usb/usb_manual_apitest.cc

Issue 20593003: Move kEnableExperimentalExtensionApis switch to extensions/common/switches.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/usb/usb_apitest.cc ('k') | chrome/browser/extensions/api/web_request/web_request_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698