Searched refs:root_dict (Results 1 – 6 of 6) sorted by relevance
/external/libchrome/base/json/ |
D | json_value_serializer_unittest.cc | 220 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 …]
|
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 | 590 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/perfetto/src/tracing/ |
D | traced_value_unittest.cc | 174 auto root_dict = in TEST() local 177 auto array = root_dict.AddItem("a1").WriteArray(); in TEST() 185 root_dict.AddItem("b0").WriteBoolean(true); in TEST() 186 root_dict.AddItem("d0").WriteDouble(0.0); in TEST() 188 auto dict1 = root_dict.AddItem("dict1").WriteDictionary(); in TEST() 196 root_dict.AddItem("i0").WriteInt64(2014); in TEST() 197 root_dict.AddItem("s0").WriteString("foo"); in TEST() 214 auto root_dict = in TEST() local 217 auto array = root_dict.AddArray("a1"); in TEST() 225 root_dict.Add("b0", true); in TEST() [all …]
|
/external/libchrome/components/policy/core/common/ |
D | plist_writer_unittest.cc | 83 base::DictionaryValue root_dict; in TEST_F() local 91 root_dict.Set("list", std::move(list)); in TEST_F() 93 EXPECT_TRUE(PlistWrite(root_dict, &output_plist)); in TEST_F()
|
/external/libchrome/base/metrics/ |
D | statistics_recorder_unittest.cc | 365 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()
|