| Index: chrome/browser/extensions/api/serial/serial_apitest.cc
|
| diff --git a/chrome/browser/extensions/api/serial/serial_apitest.cc b/chrome/browser/extensions/api/serial/serial_apitest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7a58d73a4a38b90a817b2d58783f7245c573ac21
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/serial/serial_apitest.cc
|
| @@ -0,0 +1,34 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "base/command_line.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "chrome/browser/extensions/api/serial/serial_api.h"
|
| +#include "chrome/browser/extensions/extension_apitest.h"
|
| +#include "chrome/browser/extensions/extension_function_test_utils.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| +#include "content/public/browser/browser_thread.h"
|
| +
|
| +using content::BrowserThread;
|
| +
|
| +using namespace extension_function_test_utils;
|
| +
|
| +namespace {
|
| +
|
| +class SerialApiTest : public ExtensionApiTest {
|
| + public:
|
| + SerialApiTest() {}
|
| +
|
| + virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
|
| + ExtensionApiTest::SetUpCommandLine(command_line);
|
| + command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
|
| + command_line->AppendSwitch(switches::kEnablePlatformApps);
|
| + }
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialExtension) {
|
| + ASSERT_TRUE(RunExtensionTest("serial/api")) << message_;
|
| +}
|
|
|