Home
last modified time | relevance | path

Searched refs:list_value (Results 1 – 25 of 70) sorted by relevance

123

/third_party/gn/src/gn/
Dfunction_filter_unittest.cc14 values.list_value().push_back(Value(nullptr, "foo.cc")); in TEST()
15 values.list_value().push_back(Value(nullptr, "foo.h")); in TEST()
16 values.list_value().push_back(Value(nullptr, "foo.proto")); in TEST()
19 patterns.list_value().push_back(Value(nullptr, "*.proto")); in TEST()
29 ASSERT_EQ(result.list_value().size(), 2); in TEST()
30 EXPECT_EQ(result.list_value()[0].type(), Value::STRING); in TEST()
31 EXPECT_EQ(result.list_value()[0].string_value(), "foo.cc"); in TEST()
32 EXPECT_EQ(result.list_value()[1].type(), Value::STRING); in TEST()
33 EXPECT_EQ(result.list_value()[1].string_value(), "foo.h"); in TEST()
40 values.list_value().push_back(Value(nullptr, "foo.cc")); in TEST()
[all …]
Dfunction_process_file_template_unittest.cc15 sources.list_value().push_back(Value(nullptr, "//src/foo.txt")); in TEST()
27 ASSERT_EQ(1u, result.list_value().size()); in TEST()
28 ASSERT_TRUE(result.list_value()[0].type() == Value::STRING); in TEST()
29 ASSERT_EQ("1234foo5678", result.list_value()[0].string_value()); in TEST()
38 sources.list_value().push_back(Value(nullptr, "//src/one.txt")); in TEST()
39 sources.list_value().push_back(Value(nullptr, "//src/two.txt")); in TEST()
43 expansions.list_value().push_back( in TEST()
45 expansions.list_value().push_back( in TEST()
55 ASSERT_EQ(4u, result.list_value().size()); in TEST()
56 ASSERT_TRUE(result.list_value()[0].type() == Value::STRING); in TEST()
[all …]
Doperators_unittest.cc79 list.list_value().push_back(value); in SetRightToListOfValue()
84 list.list_value().push_back(value1); in SetRightToListOfValue()
85 list.list_value().push_back(value2); in SetRightToListOfValue()
132 ASSERT_EQ(3u, value->list_value().size()); in TEST()
133 EXPECT_TRUE(IsValueIntegerEqualing(value->list_value()[0], 5)); in TEST()
134 EXPECT_TRUE(IsValueStringEqualing(value->list_value()[1], "good")); in TEST()
135 EXPECT_TRUE(IsValueStringEqualing(value->list_value()[2], "good")); in TEST()
154 inner_list.list_value().push_back(Value(nullptr, static_cast<int64_t>(12))); in TEST()
168 ASSERT_EQ(1u, result.list_value().size()); in TEST()
169 ASSERT_EQ(Value::LIST, result.list_value()[0].type()); in TEST()
[all …]
Dinput_conversion_unittest.cc55 ASSERT_EQ(4u, result.list_value().size()); in TEST_F()
56 EXPECT_EQ("", result.list_value()[0].string_value()); in TEST_F()
57 EXPECT_EQ("foo", result.list_value()[1].string_value()); in TEST_F()
58 EXPECT_EQ("bar", result.list_value()[2].string_value()); in TEST_F()
59 EXPECT_EQ("", result.list_value()[3].string_value()); in TEST_F()
66 ASSERT_EQ(2u, result.list_value().size()); in TEST_F()
67 EXPECT_EQ("foo", result.list_value()[0].string_value()); in TEST_F()
68 EXPECT_EQ("bar", result.list_value()[1].string_value()); in TEST_F()
98 ASSERT_EQ(2u, result.list_value().size()); in TEST_F()
99 EXPECT_EQ("a", result.list_value()[0].string_value()); in TEST_F()
[all …]
Dfunction_get_target_outputs_unittest.cc36 ASSERT_EQ(1u, list.list_value().size()); in AssertSingleStringEquals()
37 ASSERT_TRUE(list.list_value()[0].type() == Value::STRING); in AssertSingleStringEquals()
38 ASSERT_EQ(expected, list.list_value()[0].string_value()); in AssertSingleStringEquals()
45 ASSERT_EQ(2u, list.list_value().size()); in AssertTwoStringsEqual()
46 ASSERT_TRUE(list.list_value()[0].type() == Value::STRING); in AssertTwoStringsEqual()
47 ASSERT_EQ(expected1, list.list_value()[0].string_value()); in AssertTwoStringsEqual()
48 ASSERT_TRUE(list.list_value()[1].type() == Value::STRING); in AssertTwoStringsEqual()
49 ASSERT_EQ(expected2, list.list_value()[1].string_value()); in AssertTwoStringsEqual()
Doutput_conversion_unittest.cc37 output.list_value().push_back(Value(nullptr, "")); in TEST_F()
38 output.list_value().push_back(Value(nullptr, "foo")); in TEST_F()
39 output.list_value().push_back(Value(nullptr, "")); in TEST_F()
40 output.list_value().push_back(Value(nullptr, "bar")); in TEST_F()
85 output.list_value().push_back(Value(nullptr, "foo")); in TEST_F()
86 output.list_value().push_back(Value(nullptr, "bar")); in TEST_F()
87 output.list_value().push_back(Value(nullptr, int64_t(6))); in TEST_F()
149 output.list_value().push_back(Value(nullptr, "foo")); in TEST_F()
150 output.list_value().push_back(Value(nullptr, "bar")); in TEST_F()
151 output.list_value().push_back(Value(nullptr, int64_t(6))); in TEST_F()
[all …]
Dmetadata_unittest.cc15 a_expected.list_value().push_back(Value(nullptr, "foo")); in TEST()
17 b_expected.list_value().push_back(Value(nullptr, true)); in TEST()
40 a_expected.list_value().push_back(Value(nullptr, "foo.cpp")); in TEST()
41 a_expected.list_value().push_back(Value(nullptr, "bar.h")); in TEST()
74 a_expected.list_value().push_back(Value(nullptr, "foo.cpp")); in TEST()
75 a_expected.list_value().push_back(Value(nullptr, "foo/bar.h")); in TEST()
110 inner_list.list_value().push_back(Value(nullptr, "foo.cpp")); in TEST()
111 inner_list.list_value().push_back(Value(nullptr, "foo/bar.h")); in TEST()
112 a.list_value().push_back(inner_list); in TEST()
118 a.list_value().push_back(inner_scope); in TEST()
[all …]
Dmetadata_walk_unittest.cc18 a_expected.list_value().push_back(Value(nullptr, "foo")); in TEST()
23 b_expected.list_value().push_back(Value(nullptr, true)); in TEST()
31 a_2_expected.list_value().push_back(Value(nullptr, "bar")); in TEST()
36 b_2_expected.list_value().push_back(Value(nullptr, false)); in TEST()
76 a_expected.list_value().push_back(Value(nullptr, "foo")); in TEST()
81 b_expected.list_value().push_back(Value(nullptr, true)); in TEST()
87 a_2_expected.list_value().push_back(Value(nullptr, "bar")); in TEST()
125 a_expected.list_value().push_back(Value(nullptr, "foo")); in TEST()
130 walk_expected.list_value().push_back( in TEST()
137 a_2_expected.list_value().push_back(Value(nullptr, "bar")); in TEST()
[all …]
Dvisibility_unittest.cc14 list.list_value().push_back(Value(nullptr, "//rec/*")); // Recursive. in TEST()
15 list.list_value().push_back(Value(nullptr, "//dir:*")); // One dir. in TEST()
16 list.list_value().push_back(Value(nullptr, "//my:name")); // Exact match. in TEST()
39 list.list_value().push_back(Value(nullptr, "*")); in TEST()
64 list.list_value().push_back(Value(nullptr, "../../*")); in TEST()
Dfunction_foreach.cc69 Value list_value = args_vector[1]->Execute(scope, err); in RunForEach() local
72 list_value.VerifyTypeIs(Value::Type::LIST, err); in RunForEach()
75 const std::vector<Value>& list = list_value.list_value(); in RunForEach()
Dvalue_unittest.cc25 listval.list_value().push_back(Value(nullptr, "hi\"me")); in TEST()
26 listval.list_value().push_back(Value(nullptr, true)); in TEST()
27 listval.list_value().push_back(Value(nullptr, false)); in TEST()
28 listval.list_value().push_back(Value(nullptr, static_cast<int64_t>(42))); in TEST()
Dmetadata.cc169 for (const auto& val : iter->second.list_value()) { in WalkStep()
177 result->insert(result->end(), iter->second.list_value().begin(), in WalkStep()
178 iter->second.list_value().end()); in WalkStep()
191 for (const auto& val : iter->second.list_value()) { in WalkStep()
245 for (auto& val : value.list_value()) { in RebaseListValue()
249 rebased_list_value.list_value().push_back(pair.first); in RebaseListValue()
Dfunction_rebase_path_unittest.cc157 args[0].list_value().push_back(Value(nullptr, "foo.txt")); in TEST()
158 args[0].list_value().push_back(Value(nullptr, "bar.txt")); in TEST()
168 ASSERT_EQ(2u, ret.list_value().size()); in TEST()
170 EXPECT_EQ("../../gn/foo.txt", ret.list_value()[0].string_value()); in TEST()
171 EXPECT_EQ("../../gn/bar.txt", ret.list_value()[1].string_value()); in TEST()
Dvalue.cc243 if (list_value().size() != other.list_value().size()) in operator ==()
245 for (size_t i = 0; i < list_value().size(); i++) { in operator ==()
246 if (list_value()[i] != other.list_value()[i]) in operator ==()
Dfunction_filter.cc86 for (const auto& value : args[0].list_value()) { in RunFilter()
96 result.list_value().push_back(value); in RunFilter()
101 result.list_value().push_back(value); in RunFilter()
Dfunctions.cc793 for (const Value& cur : value->list_value()) {
1011 const std::vector<Value>& input = list_adapter.get().list_value(); in RunSplitList()
1024 result.list_value().resize(count); in RunSplitList()
1036 result.list_value()[i] = Value(function, Value::LIST); in RunSplitList()
1040 result.list_value()[i].list_value().assign(begin_add, last_item_end); in RunSplitList()
1045 result.list_value()[i] = Value(function, Value::LIST); in RunSplitList()
1049 result.list_value()[i].list_value().assign(begin_add, last_item_end); in RunSplitList()
1104 const std::vector<Value> strings = args[1].list_value(); in RunStringJoin()
1284 result.list_value().resize(strings.size()); in RunStringSplit()
1286 result.list_value()[i] = Value(function, strings[i]); in RunStringSplit()
[all …]
Doperators.cc137 exec_scope, base->list_value().size(), &index_, err); in Init()
156 return &list_->list_value()[index_]; in GetExistingValue()
172 return &list_->list_value()[index_]; in GetExistingMutableValueIfExists()
180 Value* dest = &list_->list_value()[index_]; in SetValue()
263 std::vector<Value>& v = list->list_value(); in RemoveMatchesFromList()
287 for (const auto& elem : to_remove.list_value()) { in RemoveMatchesFromList()
318 !old_value->list_value().empty() && !right.list_value().empty()) { in ExecuteEquals()
378 for (Value& value : right.list_value()) in ExecutePlus()
379 left.list_value().push_back(std::move(value)); in ExecutePlus()
476 for (Value& value : right.list_value()) in ExecutePlusEquals()
[all …]
Dcreate_bundle_target_generator.cc258 CHECK_EQ(value->list_value().size(), outputs.list().size()); in FillCodeSigningOutputs()
259 for (size_t i = 0; i < value->list_value().size(); ++i) { in FillCodeSigningOutputs()
261 value->list_value()[i])) in FillCodeSigningOutputs()
298 for (const auto& item : value->list_value()) { in FillBundleDepsFilter()
Dbundle_data_target_generator.cc69 CHECK(outputs.list().size() == value->list_value().size()); in FillOutputs()
72 value->list_value()[i])) in FillOutputs()
/third_party/flutter/engine/flutter/shell/platform/common/cpp/client_wrapper/
Dencodable_value_unittests.cc94 std::vector<uint8_t>& list_value = value.ByteListValue(); in TEST() local
95 list_value.push_back(std::numeric_limits<uint8_t>::max()); in TEST()
96 EXPECT_EQ(list_value[0], 0); in TEST()
97 EXPECT_EQ(list_value[1], 2); in TEST()
99 ASSERT_EQ(list_value.size(), 3u); in TEST()
101 EXPECT_EQ(list_value[2], std::numeric_limits<uint8_t>::max()); in TEST()
109 std::vector<int32_t>& list_value = value.IntListValue(); in TEST() local
110 list_value.push_back(std::numeric_limits<int32_t>::max()); in TEST()
111 EXPECT_EQ(list_value[0], -10); in TEST()
112 EXPECT_EQ(list_value[1], 2); in TEST()
[all …]
/third_party/cef/tests/ceftests/
Dvalues_unittest.cc190 CefRefPtr<CefListValue>& list_value) { in TestDictionaryList() argument
191 list_value = CefListValue::Create(); in TestDictionaryList()
192 EXPECT_TRUE(list_value.get()); in TestDictionaryList()
193 EXPECT_TRUE(list_value->IsValid()); in TestDictionaryList()
194 EXPECT_FALSE(list_value->IsOwned()); in TestDictionaryList()
195 EXPECT_FALSE(list_value->IsReadOnly()); in TestDictionaryList()
196 EXPECT_TRUE(list_value->SetInt(0, kIntValue)); in TestDictionaryList()
197 EXPECT_EQ(1U, list_value->GetSize()); in TestDictionaryList()
199 EXPECT_TRUE(value->SetList(kListKey, list_value)); in TestDictionaryList()
200 EXPECT_FALSE(list_value->IsValid()); // Value should be detached in TestDictionaryList()
[all …]
/third_party/boost/libs/property_tree/examples/
Dcustom_data_type.cpp80 intlist list_value = pt.get<intlist>( in main() local
85 for (intlist::iterator it = list_value.begin(); it != list_value.end(); ++it) in main()
/third_party/protobuf/python/google/protobuf/internal/
Dwell_known_types.py733 struct_value.list_value.Clear()
734 struct_value.list_value.extend(value)
752 return struct_value.list_value
793 self.fields[key].list_value.Clear()
794 return self.fields[key].list_value
848 list_value = self.values.add().list_value
850 list_value.Clear()
851 return list_value
Dmessage_factory_test.py71 msg.factory_1_message.list_value.extend([u'one', u'two', u'three'])
72 msg.factory_1_message.list_value.append(u'four')
80 msg.list_value.extend([u'four', u'three', u'two'])
81 msg.list_value.append(u'one')
/third_party/gstreamer/gstreamer/gst/
Dgststructure.c2512 const GValue *list_value; in gst_structure_fixate_field_nearest_int() local
2519 list_value = gst_value_list_get_value (value, i); in gst_structure_fixate_field_nearest_int()
2520 if (G_VALUE_TYPE (list_value) == G_TYPE_INT) { in gst_structure_fixate_field_nearest_int()
2521 int x = gst_g_value_get_int_unchecked (list_value); in gst_structure_fixate_field_nearest_int()
2576 const GValue *list_value; in gst_structure_fixate_field_nearest_double() local
2583 list_value = gst_value_list_get_value (value, i); in gst_structure_fixate_field_nearest_double()
2584 if (G_VALUE_TYPE (list_value) == G_TYPE_DOUBLE) { in gst_structure_fixate_field_nearest_double()
2585 double x = gst_g_value_get_double_unchecked (list_value); in gst_structure_fixate_field_nearest_double()
2630 const GValue *list_value; in gst_structure_fixate_field_boolean() local
2637 list_value = gst_value_list_get_value (value, i); in gst_structure_fixate_field_boolean()
[all …]

123