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, |