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

Unified Diff: extensions/renderer/api_binding_test_util.h

Issue 2657613005: [Extensions Bindings] Add chrome.runtime.lastError support (Closed)
Patch Set: . Created 3 years, 10 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
« no previous file with comments | « extensions/renderer/BUILD.gn ('k') | extensions/renderer/api_binding_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cc306e6a4058aefb2dad79bad7426b28963d68ea..949049dbff9f53efca373a0478960372ccc4b181 100644
--- a/extensions/renderer/api_binding_test_util.h
+++ b/extensions/renderer/api_binding_test_util.h
@@ -37,6 +37,12 @@ std::unique_ptr<base::DictionaryValue> DictionaryValueFromString(
// succeed.
std::string ValueToString(const base::Value& value);
+// Converts the given |value| to a string. Returns "empty", "undefined", "null",
+// or "function" for unserializable values. Note this differs from
+// gin::V8ToString, which only accepts v8::String values.
+std::string V8ToString(v8::Local<v8::Value> value,
+ v8::Local<v8::Context> context);
+
// Returns a v8::Value result from compiling and running |source|, or an empty
// local on failure.
v8::Local<v8::Value> V8ValueFromScriptSource(v8::Local<v8::Context> context,
« no previous file with comments | « extensions/renderer/BUILD.gn ('k') | extensions/renderer/api_binding_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698