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

Unified Diff: chrome/browser/extensions/native_bindings_apitest.cc

Issue 2575173002: [Extensions Bindings] Add a bridge to use current custom bindings (Closed)
Patch Set: . Created 4 years 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
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/native_bindings_apitest.cc
diff --git a/chrome/browser/extensions/native_bindings_apitest.cc b/chrome/browser/extensions/native_bindings_apitest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1fc10e62ac7e84df1384f5b8ee4cdcef5b2c34a6
--- /dev/null
+++ b/chrome/browser/extensions/native_bindings_apitest.cc
@@ -0,0 +1,33 @@
+// Copyright 2016 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"
+#include "extensions/common/switches.h"
+
+namespace extensions {
+
+// And end-to-end test for extension APIs using native bindings.
+class NativeBindingsApiTest : public ExtensionApiTest {
+ public:
+ NativeBindingsApiTest() {}
+ ~NativeBindingsApiTest() override {}
+
+ void SetUpCommandLine(base::CommandLine* command_line) override {
+ ExtensionApiTest::SetUpCommandLine(command_line);
+ // Note: We don't use a FeatureSwitch::ScopedOverride here because we need
+ // the switch to be propogated to the renderer, which doesn't happen with
+ // a ScopedOverride.
+ command_line->AppendSwitchASCII(switches::kNativeCrxBindings, "1");
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NativeBindingsApiTest);
+};
+
+IN_PROC_BROWSER_TEST_F(NativeBindingsApiTest, SimpleEndToEndTest) {
+ ASSERT_TRUE(RunExtensionTest("native_bindings")) << message_;
+}
+
+} // namespace extensions
« no previous file with comments | « no previous file | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698