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

Unified Diff: chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc

Issue 11038021: Implement Chrome Extension TabCapture API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some tests, fixes Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
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_;
+}

Powered by Google App Engine
This is Rietveld 408576698