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

Unified Diff: base/test/values_test_util.h

Issue 178253007: Parse manifest file with app.service_worker.script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: base/test/values_test_util.h
diff --git a/base/test/values_test_util.h b/base/test/values_test_util.h
index 86d91c3868f0cca38b93f6381756eb0689c9903c..500e94d03ad73fd2050eebeff883c4a9d3a8a5b7 100644
--- a/base/test/values_test_util.h
+++ b/base/test/values_test_util.h
@@ -50,6 +50,12 @@ namespace test {
// failure and returns the Null Value (but never a NULL pointer).
scoped_ptr<Value> ParseJson(base::StringPiece json);
+// Parses |json| allowing trailing commas and replacing single quotes with
+// double quotes for test readability. If the json fails to parse, returns an
+// empty dictionary and causes an EXPECT failure.
+scoped_ptr<DictionaryValue> ParseJsonDictionaryWithSingleQuotes(
+ std::string json);
+
} // namespace test
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698