Home
last modified time | relevance | path

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

/external/libchrome/base/json/
Djson_value_serializer_unittest.cc220 std::unique_ptr<DictionaryValue> root_dict = in TEST() local
222 ASSERT_TRUE(root_dict); in TEST()
225 ASSERT_TRUE(root_dict->Get("null", &null_value)); in TEST()
230 ASSERT_TRUE(root_dict->GetBoolean("bool", &bool_value)); in TEST()
234 ASSERT_TRUE(root_dict->GetInteger("int", &int_value)); in TEST()
238 ASSERT_TRUE(root_dict->GetDouble("double", &double_value)); in TEST()
243 ASSERT_TRUE(mutable_serializer.Serialize(*root_dict)); in TEST()
247 ASSERT_TRUE(mutable_serializer.Serialize(*root_dict)); in TEST()
413 std::unique_ptr<DictionaryValue> root_dict = in TEST_F() local
415 ASSERT_TRUE(root_dict); in TEST_F()
[all …]
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.cc590 DictionaryValue* root_dict = nullptr; in TEST() local
591 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST()
596 ASSERT_TRUE(root_dict->GetDictionary("test", &dict)); in TEST()
597 ASSERT_TRUE(root_dict->GetList("list", &list)); in TEST()
/external/libchrome/base/metrics/
Dstatistics_recorder_unittest.cc365 DictionaryValue* root_dict = nullptr; in TEST_P() local
366 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST_P()
369 ASSERT_FALSE(root_dict->HasKey("query")); in TEST_P()
372 ASSERT_TRUE(root_dict->GetList("histograms", &histogram_list)); in TEST_P()
391 root_dict = nullptr; in TEST_P()
392 ASSERT_TRUE(root->GetAsDictionary(&root_dict)); in TEST_P()
394 ASSERT_TRUE(root_dict->GetList("histograms", &histogram_list)); in TEST_P()