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

Unified Diff: chrome/browser/extensions/api/command_line_private/command_line_private_apitest.cc

Issue 14027005: Implement Command Line Private extension API (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: rebase Created 7 years, 8 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/command_line_private/command_line_private_apitest.cc
===================================================================
--- chrome/browser/extensions/api/command_line_private/command_line_private_apitest.cc (revision 0)
+++ chrome/browser/extensions/api/command_line_private/command_line_private_apitest.cc (revision 0)
@@ -0,0 +1,23 @@
+// Copyright 2013 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 "chrome/browser/extensions/extension_apitest.h"
+
+namespace {
+// This should be consistent with
+// chrome/test/data/extensions/api_test/command_line/basics/test.js.
+const char kTestCommandLineSwitch[] = "command-line-private-api-test-foo";
+} // namespace
+
+class CommandLinePrivateApiTest : public ExtensionApiTest {
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
+ ExtensionApiTest::SetUpCommandLine(command_line);
+ command_line->AppendSwitch(kTestCommandLineSwitch);
+ }
+};
+
+IN_PROC_BROWSER_TEST_F(CommandLinePrivateApiTest, Basics) {
+ EXPECT_TRUE(RunComponentExtensionTest("command_line/basics")) << message_;
+}
Property changes on: chrome/browser/extensions/api/command_line_private/command_line_private_apitest.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698