Index: chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc |
diff --git a/chrome/browser/extensions/api/idltest/idltest_apitest.cc b/chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc |
similarity index 58% |
copy from chrome/browser/extensions/api/idltest/idltest_apitest.cc |
copy to chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc |
index d9500381fb1d2510ae44271c48f63b44e84256b6..036203780fb0433789b95671bb1adc3922df379e 100644 |
--- a/chrome/browser/extensions/api/idltest/idltest_apitest.cc |
+++ b/chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc |
@@ -2,21 +2,22 @@ |
// 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 "chrome/browser/extensions/extension_apitest.h" |
#include "chrome/common/chrome_switches.h" |
-class ExtensionIdltestApiTest : public ExtensionApiTest { |
- public: |
- ExtensionIdltestApiTest() {} |
- virtual ~ExtensionIdltestApiTest() {} |
+namespace { |
+class ExperimentalExtensionApiTest : public ExtensionApiTest { |
+ public: |
virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
ExtensionApiTest::SetUpCommandLine(command_line); |
command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); |
} |
}; |
-IN_PROC_BROWSER_TEST_F(ExtensionIdltestApiTest, IdlCompiler) { |
- EXPECT_TRUE(RunExtensionSubtest("idltest/binary_data", "binary.html")); |
- EXPECT_TRUE(RunExtensionSubtest("idltest/nocompile", "nocompile.html")); |
-}; |
+} // namespace |
+ |
+IN_PROC_BROWSER_TEST_F(ExperimentalExtensionApiTest, TabCapture) { |
+ ASSERT_TRUE(RunExtensionTest("tab_capture/experimental")) << message_; |
+} |