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

Unified Diff: extensions/renderer/api_binding_test_util.cc

Issue 2598123002: [Extensions Bindings] Add support for updateArgumentsPreValidate (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
Index: extensions/renderer/api_binding_test_util.cc
diff --git a/extensions/renderer/api_binding_test_util.cc b/extensions/renderer/api_binding_test_util.cc
index d1b0cc80b59a04dc5619f9c21f2f205362aba3f8..d259f4e739b2545237914c7f5adc2b3ca1b4278f 100644
--- a/extensions/renderer/api_binding_test_util.cc
+++ b/extensions/renderer/api_binding_test_util.cc
@@ -135,6 +135,16 @@ void RunFunctionOnGlobalAndIgnoreResult(v8::Local<v8::Function> function,
RunFunction(function, context, context->Global(), argc, argv);
}
+v8::Global<v8::Value> RunFunctionOnGlobalAndReturnHandle(
+ v8::Local<v8::Function> function,
+ v8::Local<v8::Context> context,
+ int argc,
+ v8::Local<v8::Value> argv[]) {
+ return v8::Global<v8::Value>(
+ context->GetIsolate(),
+ RunFunction(function, context, context->Global(), argc, argv));
+}
+
void RunFunctionAndExpectError(v8::Local<v8::Function> function,
v8::Local<v8::Context> context,
v8::Local<v8::Value> receiver,

Powered by Google App Engine
This is Rietveld 408576698