Searched refs:root_dict (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/base/json/ |
D | json_value_serializer_unittest.cc | 226 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 …]
|
D | json_writer_unittest.cc | 59 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()
|
D | json_reader_unittest.cc | 617 DictionaryValue* root_dict = nullptr; in TEST() local 618 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST() 623 ASSERT_TRUE(root_dict->GetDictionary("test", &dict)); in TEST() 624 ASSERT_TRUE(root_dict->GetList("list", &list)); in TEST()
|
/external/libchrome/base/metrics/ |
D | statistics_recorder_unittest.cc | 375 DictionaryValue* root_dict = NULL; in TEST_P() local 376 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST_P() 379 ASSERT_FALSE(root_dict->HasKey("query")); in TEST_P() 382 ASSERT_TRUE(root_dict->GetList("histograms", &histogram_list)); in TEST_P() 399 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST_P() 402 ASSERT_TRUE(root_dict->GetString("query", &query_value)); in TEST_P() 405 ASSERT_TRUE(root_dict->GetList("histograms", &histogram_list)); in TEST_P()
|