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

Unified Diff: extensions/renderer/api_binding_test_util.h

Issue 2598123002: [Extensions Bindings] Add support for updateArgumentsPreValidate (Closed)
Patch Set: jbroman II Created 3 years, 11 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: extensions/renderer/api_binding_test_util.h
diff --git a/extensions/renderer/api_binding_test_util.h b/extensions/renderer/api_binding_test_util.h
index 3cdfdfacf380da251c740d57a265d3cc52f2285c..cc306e6a4058aefb2dad79bad7426b28963d68ea 100644
--- a/extensions/renderer/api_binding_test_util.h
+++ b/extensions/renderer/api_binding_test_util.h
@@ -78,6 +78,13 @@ void RunFunctionOnGlobalAndIgnoreResult(v8::Local<v8::Function> function,
int argc,
v8::Local<v8::Value> argv[]);
+// Like RunFunctionOnGlobal(), but returns a persistent handle for the result.
+v8::Global<v8::Value> RunFunctionOnGlobalAndReturnHandle(
+ v8::Local<v8::Function> function,
+ v8::Local<v8::Context> context,
+ int argc,
+ v8::Local<v8::Value> argv[]);
+
// Calls the given |function| with the specified |receiver| and arguments, but
// EXPECTs the function to throw the |expected_error|.
void RunFunctionAndExpectError(v8::Local<v8::Function> function,

Powered by Google App Engine
This is Rietveld 408576698