OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/command_line.h" |
| 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "chrome/browser/extensions/api/serial/serial_api.h" |
| 8 #include "chrome/browser/extensions/extension_apitest.h" |
| 9 #include "chrome/browser/extensions/extension_function_test_utils.h" |
| 10 #include "chrome/common/chrome_switches.h" |
| 11 #include "content/public/browser/browser_thread.h" |
| 12 |
| 13 using content::BrowserThread; |
| 14 |
| 15 using namespace extension_function_test_utils; |
| 16 |
| 17 namespace { |
| 18 |
| 19 class SerialApiTest : public ExtensionApiTest { |
| 20 public: |
| 21 SerialApiTest() {} |
| 22 |
| 23 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
| 24 ExtensionApiTest::SetUpCommandLine(command_line); |
| 25 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); |
| 26 command_line->AppendSwitch(switches::kEnablePlatformApps); |
| 27 } |
| 28 }; |
| 29 |
| 30 } // namespace |
| 31 |
| 32 IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialExtension) { |
| 33 ASSERT_TRUE(RunExtensionTest("serial/api")) << message_; |
| 34 } |
OLD | NEW |