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

Unified Diff: extensions/renderer/api_binding_test_util.h

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.h
diff --git a/extensions/renderer/api_binding_test_util.h b/extensions/renderer/api_binding_test_util.h
index aa98697ceeda2ffe67bbe97b74c6ca3acd72e13c..8ec816ccef1e6402ca075223f60b115705f39a63 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