Lines Matching refs:make_unique
119 storage.emplace("foo", std::make_unique<Value>("bar")); in TEST()
241 storage.emplace("Int", std::make_unique<Value>(123)); in TEST()
343 storage.emplace("Int", std::make_unique<Value>(123)); in TEST()
353 storage.emplace("Int", std::make_unique<Value>(123)); in TEST()
377 storage.emplace("foo", std::make_unique<Value>("bar")); in TEST()
389 storage.emplace("foo", std::make_unique<Value>("bar")); in TEST()
401 storage.emplace("foo", std::make_unique<Value>("bar")); in TEST()
409 storage.emplace("null", std::make_unique<Value>(Value::Type::NONE)); in TEST()
410 storage.emplace("bool", std::make_unique<Value>(Value::Type::BOOLEAN)); in TEST()
411 storage.emplace("int", std::make_unique<Value>(Value::Type::INTEGER)); in TEST()
412 storage.emplace("double", std::make_unique<Value>(Value::Type::DOUBLE)); in TEST()
413 storage.emplace("string", std::make_unique<Value>(Value::Type::STRING)); in TEST()
414 storage.emplace("blob", std::make_unique<Value>(Value::Type::BINARY)); in TEST()
415 storage.emplace("list", std::make_unique<Value>(Value::Type::LIST)); in TEST()
416 storage.emplace("dict", std::make_unique<Value>(Value::Type::DICTIONARY)); in TEST()
494 storage.emplace("null", std::make_unique<Value>(Value::Type::NONE)); in TEST()
495 storage.emplace("bool", std::make_unique<Value>(Value::Type::BOOLEAN)); in TEST()
496 storage.emplace("int", std::make_unique<Value>(Value::Type::INTEGER)); in TEST()
497 storage.emplace("double", std::make_unique<Value>(Value::Type::DOUBLE)); in TEST()
498 storage.emplace("string", std::make_unique<Value>(Value::Type::STRING)); in TEST()
499 storage.emplace("blob", std::make_unique<Value>(Value::Type::BINARY)); in TEST()
500 storage.emplace("list", std::make_unique<Value>(Value::Type::LIST)); in TEST()
501 storage.emplace("dict", std::make_unique<Value>(Value::Type::DICTIONARY)); in TEST()
579 storage.emplace("null", std::make_unique<Value>(Value::Type::NONE)); in TEST()
580 storage.emplace("bool", std::make_unique<Value>(Value::Type::BOOLEAN)); in TEST()
581 storage.emplace("int", std::make_unique<Value>(Value::Type::INTEGER)); in TEST()
582 storage.emplace("double", std::make_unique<Value>(Value::Type::DOUBLE)); in TEST()
583 storage.emplace("string", std::make_unique<Value>(Value::Type::STRING)); in TEST()
584 storage.emplace("blob", std::make_unique<Value>(Value::Type::BINARY)); in TEST()
585 storage.emplace("list", std::make_unique<Value>(Value::Type::LIST)); in TEST()
586 storage.emplace("dict", std::make_unique<Value>(Value::Type::DICTIONARY)); in TEST()
737 mixed_list->Set(0, std::make_unique<Value>(true)); in TEST()
738 mixed_list->Set(1, std::make_unique<Value>(42)); in TEST()
739 mixed_list->Set(2, std::make_unique<Value>(88.8)); in TEST()
740 mixed_list->Set(3, std::make_unique<Value>("foo")); in TEST()
786 auto binary = std::make_unique<Value>(Value::Type::BINARY); in TEST()
845 list.Append(std::make_unique<Value>()); in TEST()
856 list.Append(std::make_unique<Value>()); in TEST()
869 list.Append(std::make_unique<Value>()); in TEST()
876 auto value = std::make_unique<Value>(); in TEST()
889 dict.Set(key, std::make_unique<Value>()); in TEST()
902 Value* blank_ptr = dict.Set("foo.bar", std::make_unique<base::Value>()); in TEST()
909 "foo.bar", std::make_unique<base::Value>()); in TEST()
944 "foo.bar", std::make_unique<base::DictionaryValue>()); in TEST()
951 dict.SetList("foo.bar", std::make_unique<base::ListValue>()); in TEST()
964 dict.Set(key, std::make_unique<Value>()); in TEST()
979 dict.Set(key, std::make_unique<Value>()); in TEST()
988 dict.Set("this.is.expanded", std::make_unique<Value>()); in TEST()
989 dict.SetWithoutPathExpansion("this.isnt.expanded", std::make_unique<Value>()); in TEST()
1012 dict.Set("this.is.expanded", std::make_unique<Value>()); in TEST()
1013 dict.SetWithoutPathExpansion("this.isnt.expanded", std::make_unique<Value>()); in TEST()
1059 Value* null_weak = original_dict.Set("null", std::make_unique<Value>()); in TEST()
1060 Value* bool_weak = original_dict.Set("bool", std::make_unique<Value>(true)); in TEST()
1061 Value* int_weak = original_dict.Set("int", std::make_unique<Value>(42)); in TEST()
1063 original_dict.Set("double", std::make_unique<Value>(3.14)); in TEST()
1065 original_dict.Set("string", std::make_unique<Value>("hello")); in TEST()
1067 "string16", std::make_unique<Value>(ASCIIToUTF16("hello16"))); in TEST()
1070 "binary", std::make_unique<Value>(Value::BlobStorage(42, '!'))); in TEST()
1076 original_dict.Set("list", std::make_unique<Value>(std::move(storage))); in TEST()
1081 "dictionary", std::make_unique<DictionaryValue>()); in TEST()
1189 auto null1 = std::make_unique<Value>(); in TEST()
1190 auto null2 = std::make_unique<Value>(); in TEST()
1203 dv.Set("e", std::make_unique<Value>()); in TEST()
1209 list->Append(std::make_unique<Value>()); in TEST()
1211 auto list_copy = std::make_unique<Value>(list->Clone()); in TEST()
1218 list_weak->Append(std::make_unique<Value>(true)); in TEST()
1373 auto copy_dict = std::make_unique<Value>(original_dict.Clone()); in TEST()
1374 auto copy_null = std::make_unique<Value>(null_weak->Clone()); in TEST()
1375 auto copy_bool = std::make_unique<Value>(bool_weak->Clone()); in TEST()
1376 auto copy_int = std::make_unique<Value>(int_weak->Clone()); in TEST()
1377 auto copy_double = std::make_unique<Value>(double_weak->Clone()); in TEST()
1378 auto copy_string = std::make_unique<Value>(string_weak->Clone()); in TEST()
1379 auto copy_string16 = std::make_unique<Value>(string16_weak->Clone()); in TEST()
1380 auto copy_binary = std::make_unique<Value>(binary_weak->Clone()); in TEST()
1381 auto copy_list = std::make_unique<Value>(list_weak->Clone()); in TEST()
1395 auto root = std::make_unique<DictionaryValue>(); in TEST()
1397 root->Set("empty_dict", std::make_unique<DictionaryValue>()); in TEST()
1398 root->Set("empty_list", std::make_unique<ListValue>()); in TEST()
1400 std::make_unique<DictionaryValue>()); in TEST()
1406 root->Set("empty_dict", std::make_unique<DictionaryValue>()); in TEST()
1418 root->Set("a.b.c.d.e", std::make_unique<DictionaryValue>()); in TEST()
1423 auto inner = std::make_unique<DictionaryValue>(); in TEST()
1424 inner->Set("empty_dict", std::make_unique<DictionaryValue>()); in TEST()
1425 inner->Set("empty_list", std::make_unique<ListValue>()); in TEST()
1431 auto inner = std::make_unique<ListValue>(); in TEST()
1432 inner->Append(std::make_unique<DictionaryValue>()); in TEST()
1433 inner->Append(std::make_unique<ListValue>()); in TEST()
1441 auto inner = std::make_unique<ListValue>(); in TEST()
1442 inner->Append(std::make_unique<DictionaryValue>()); in TEST()
1443 inner->Append(std::make_unique<ListValue>()); in TEST()
1445 auto inner2 = std::make_unique<DictionaryValue>(); in TEST()
1446 inner2->Set("empty_dict", std::make_unique<DictionaryValue>()); in TEST()
1447 inner2->Set("empty_list", std::make_unique<ListValue>()); in TEST()
1455 auto inner = std::make_unique<ListValue>(); in TEST()
1456 auto inner2 = std::make_unique<ListValue>(); in TEST()
1457 inner2->Append(std::make_unique<Value>("hello")); in TEST()
1458 inner->Append(std::make_unique<DictionaryValue>()); in TEST()
1645 main_list.Append(std::make_unique<Value>(bool_value.Clone())); in TEST()
1646 main_list.Append(std::make_unique<Value>(int_value.Clone())); in TEST()
1647 main_list.Append(std::make_unique<Value>(double_value.Clone())); in TEST()
1648 main_list.Append(std::make_unique<Value>(string_value.Clone())); in TEST()
1649 main_list.Append(std::make_unique<Value>(binary_value.Clone())); in TEST()
1650 main_list.Append(std::make_unique<Value>(dict_value.Clone())); in TEST()
1651 main_list.Append(std::make_unique<Value>(list_value.Clone())); in TEST()
1909 std::unique_ptr<DictionaryValue> dict = std::make_unique<DictionaryValue>(); in TEST()