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

Unified Diff: base/json/json_writer_unittest.cc

Issue 7647026: base: Add three helper functions to Values API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a typo Ceate -> Create Created 9 years, 4 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 | « base/json/json_reader.cc ('k') | base/values.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/json_writer_unittest.cc
diff --git a/base/json/json_writer_unittest.cc b/base/json/json_writer_unittest.cc
index 6d7714b5aad7fd4f964a2b5fa27839fbe18db51f..c14f1f5cd035e7237a85f6d58828859664879425 100644
--- a/base/json/json_writer_unittest.cc
+++ b/base/json/json_writer_unittest.cc
@@ -10,7 +10,7 @@ namespace base {
TEST(JSONWriterTest, Writing) {
// Test null
- Value* root = Value::CreateNullValue();
+ Value* root = NullValue();
std::string output_js;
JSONWriter::Write(root, false, &output_js);
ASSERT_EQ("null", output_js);
@@ -56,7 +56,7 @@ TEST(JSONWriterTest, Writing) {
inner_dict->SetInteger("inner int", 10);
ListValue* inner_list = new ListValue;
list->Append(inner_list);
- list->Append(Value::CreateBooleanValue(true));
+ list->Append(TrueValue());
// Test the pretty-printer.
JSONWriter::Write(&root_dict, false, &output_js);
« no previous file with comments | « base/json/json_reader.cc ('k') | base/values.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698