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

Unified Diff: extensions/renderer/api_bindings_system_unittest.h

Issue 2762623003: [Extensions Bindings] Add lastError utilities to APIBindingJSUtil (Closed)
Patch Set: jbroman's 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 f79bdef0f45f71c3648cefd661534552a048cc23..b1cd6a94a7dd2abf80f4593d97bbcf6cc17c5c55 100644
--- a/extensions/renderer/api_bindings_system_unittest.h
+++ b/extensions/renderer/api_bindings_system_unittest.h
@@ -70,10 +70,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