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

Unified Diff: extensions/renderer/api_bindings_system_unittest.h

Issue 2762623003: [Extensions Bindings] Add lastError utilities to APIBindingJSUtil (Closed)
Patch Set: Rebase 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 f635d79d9877bfdf3e6208b6223b7fa7c1a91582..c3a7611db2f3d32859361d2b4113ad659fe5ed23 100644
--- a/extensions/renderer/api_bindings_system_unittest.h
+++ b/extensions/renderer/api_bindings_system_unittest.h
@@ -71,10 +71,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();
« no previous file with comments | « extensions/renderer/api_binding_js_util_unittest.cc ('k') | extensions/renderer/api_bindings_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698