Lines Matching refs:Value
18 base::Value in;
19 base::Value out;
20 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::Value>(&in, &out));
27 base::Value in(test_case);
28 base::Value out;
29 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::Value>(&in, &out));
39 base::Value in(test_case);
40 base::Value out;
41 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::Value>(&in, &out));
54 base::Value in(test_case);
55 base::Value out;
56 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::Value>(&in, &out));
68 base::Value in(test_case);
69 base::Value out;
70 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::Value>(&in, &out));
77 base::Value in(std::move(kBinaryData));
78 base::Value out;
79 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::Value>(&in, &out));
87 std::vector<base::Value::DictStorage::value_type> storage;
88 storage.emplace_back("null", std::make_unique<base::Value>());
89 storage.emplace_back("bool", std::make_unique<base::Value>(false));
90 storage.emplace_back("int", std::make_unique<base::Value>(0));
91 storage.emplace_back("double", std::make_unique<base::Value>(0.0));
92 storage.emplace_back("string", std::make_unique<base::Value>("0"));
94 "binary", std::make_unique<base::Value>(base::Value::BlobStorage({0})));
96 "dictionary", std::make_unique<base::Value>(base::Value::DictStorage()));
98 "list", std::make_unique<base::Value>(base::Value::ListStorage()));
100 base::Value in(
101 base::Value::DictStorage(std::move(storage), base::KEEP_LAST_OF_DUPES));
102 base::Value out;
103 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::Value>(&in, &out));
112 base::Value in;
115 base::Value out;
121 base::Value::ListStorage storage;
127 storage.emplace_back(base::Value::BlobStorage({0}));
128 storage.emplace_back(base::Value::DictStorage());
129 storage.emplace_back(base::Value::ListStorage());
130 base::Value in(std::move(storage));
131 base::Value out;
132 ASSERT_TRUE(mojo::test::SerializeAndDeserialize<mojom::Value>(&in, &out));
140 base::Value in;
143 base::Value out;
148 // A deeply nested base::Value should trigger a deserialization error.
150 base::Value in;
152 base::Value::ListStorage storage;
154 in = base::Value(std::move(storage));
156 base::Value out;
157 ASSERT_FALSE(mojo::test::SerializeAndDeserialize<mojom::Value>(&in, &out));