Home
last modified time | relevance | path

Searched refs:root_dict (Results 1 – 6 of 6) sorted by relevance

/external/libchrome/base/json/
Djson_value_serializer_unittest.cc226 DictionaryValue* root_dict = static_cast<DictionaryValue*>(root.get()); in TEST() local
229 ASSERT_TRUE(root_dict->Get("null", &null_value)); in TEST()
234 ASSERT_TRUE(root_dict->GetBoolean("bool", &bool_value)); in TEST()
238 ASSERT_TRUE(root_dict->GetInteger("int", &int_value)); in TEST()
242 ASSERT_TRUE(root_dict->GetDouble("double", &double_value)); in TEST()
247 ASSERT_TRUE(mutable_serializer.Serialize(*root_dict)); in TEST()
251 ASSERT_TRUE(mutable_serializer.Serialize(*root_dict)); in TEST()
425 DictionaryValue* root_dict = static_cast<DictionaryValue*>(root.get()); in TEST_F() local
428 ASSERT_TRUE(root_dict->Get("null", &null_value)); in TEST_F()
433 ASSERT_TRUE(root_dict->GetBoolean("bool", &bool_value)); in TEST_F()
[all …]
Djson_writer_unittest.cc57 DictionaryValue root_dict; in TEST() local
64 root_dict.Set("list", std::move(list)); in TEST()
67 EXPECT_TRUE(JSONWriter::Write(root_dict, &output_js)); in TEST()
70 root_dict, JSONWriter::OPTIONS_PRETTY_PRINT, &output_js)); in TEST()
Djson_reader_unittest.cc593 DictionaryValue* root_dict = NULL; in TEST() local
594 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST()
599 ASSERT_TRUE(root_dict->GetDictionary("test", &dict)); in TEST()
600 ASSERT_TRUE(root_dict->GetList("list", &list)); in TEST()
/external/libweave/third_party/chromium/base/json/
Djson_writer_unittest.cc59 DictionaryValue root_dict; in TEST() local
66 root_dict.Set("list", std::move(list)); in TEST()
69 EXPECT_TRUE(JSONWriter::Write(root_dict, &output_js)); in TEST()
72 root_dict, JSONWriter::OPTIONS_PRETTY_PRINT, &output_js)); in TEST()
Djson_reader_unittest.cc570 DictionaryValue* root_dict = NULL; in TEST() local
571 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST()
576 ASSERT_TRUE(root_dict->GetDictionary("test", &dict)); in TEST()
577 ASSERT_TRUE(root_dict->GetList("list", &list)); in TEST()
/external/libchrome/base/metrics/
Dstatistics_recorder_unittest.cc271 DictionaryValue* root_dict = NULL; in TEST_F() local
272 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST_F()
275 ASSERT_FALSE(root_dict->HasKey("query")); in TEST_F()
278 ASSERT_TRUE(root_dict->GetList("histograms", &histogram_list)); in TEST_F()
295 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST_F()
298 ASSERT_TRUE(root_dict->GetString("query", &query_value)); in TEST_F()
301 ASSERT_TRUE(root_dict->GetList("histograms", &histogram_list)); in TEST_F()