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

Unified Diff: extensions/renderer/api_binding_test_util.h

Issue 2601143002: [Extensions Bindings] Add a GetStringPropertyFromObject test method (Closed)
Patch Set: Created 4 years 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 | « no previous file | 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 aa98697ceeda2ffe67bbe97b74c6ca3acd72e13c..3cdfdfacf380da251c740d57a265d3cc52f2285c 100644
--- a/extensions/renderer/api_binding_test_util.h
+++ b/extensions/renderer/api_binding_test_util.h
@@ -106,6 +106,12 @@ std::unique_ptr<base::Value> GetBaseValuePropertyFromObject(
v8::Local<v8::Context> context,
base::StringPiece key);
+// As above, but returns a JSON-serialized version of the value, or
+// "undefined", "null", "function", or "empty".
+std::string GetStringPropertyFromObject(v8::Local<v8::Object> object,
+ v8::Local<v8::Context> context,
+ base::StringPiece key);
+
} // extensions
#endif // EXTENSIONS_RENDERER_API_BINDING_TEST_UTIL_H_
« no previous file with comments | « no previous file | extensions/renderer/api_binding_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698