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

Unified Diff: extensions/renderer/api_bindings_system_unittest.h

Issue 2762623003: [Extensions Bindings] Add lastError utilities to APIBindingJSUtil (Closed)
Patch Set: . Created 3 years, 9 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_bindings_system_unittest.h
diff --git a/extensions/renderer/api_bindings_system_unittest.h b/extensions/renderer/api_bindings_system_unittest.h
index 2b13f16090c461da177cf17861608980ed413384..614fa47e02b40a1d2af28c969a9f52c157f12316 100644
--- a/extensions/renderer/api_bindings_system_unittest.h
+++ b/extensions/renderer/api_bindings_system_unittest.h
@@ -60,10 +60,11 @@ class APIBindingsSystemTest : public APIBindingTest {
const std::string& expected_arguments);
// Wraps the given |script source| in (function(obj) { ... }) and executes
- // the result function, passing in |object| for an argument.
- void CallFunctionOnObject(v8::Local<v8::Context> context,
- v8::Local<v8::Object> object,
- const std::string& script_source);
+ // the result function, passing in |object| for an argument. Returns the
+ // result of calling the function.
+ v8::Local<v8::Value> CallFunctionOnObject(v8::Local<v8::Context> context,
+ v8::Local<v8::Object> object,
+ const std::string& script_source);
const APIRequestHandler::Request* last_request() const {
return last_request_.get();

Powered by Google App Engine
This is Rietveld 408576698