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

Unified Diff: extensions/renderer/api_binding_test_util.cc

Issue 2598123002: [Extensions Bindings] Add support for updateArgumentsPreValidate (Closed)
Patch Set: rebase 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 57fa7afbd21686952944ced122b543ad3772d97b..66cd2c358714f60bbb5cc3220733cae96384debc 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