Lines Matching defs:conditions
72 RecordingConditionSet::AnyVector conditions;
73 conditions.push_back(ScopedToLinkedPtr(ParseJson("{\"key\": 1}")));
74 conditions.push_back(ScopedToLinkedPtr(ParseJson("{\"bad_key\": 2}")));
78 NULL, matcher.condition_factory(), conditions, &error);
85 RecordingConditionSet::AnyVector conditions;
86 conditions.push_back(ScopedToLinkedPtr(ParseJson("{\"key\": 1}")));
87 conditions.push_back(ScopedToLinkedPtr(ParseJson("[\"val1\", 2]")));
92 NULL, matcher.condition_factory(), conditions, &error);
95 EXPECT_EQ(2u, result->conditions().size());
97 EXPECT_EQ(matcher.condition_factory(), result->conditions()[0]->factory);
99 result->conditions()[0]->value.get()));
151 URLMatcherConditionSet::Conditions());
159 FulfillableConditionSet::AnyVector conditions;
160 conditions.push_back(ScopedToLinkedPtr(ParseJson(
162 conditions.push_back(ScopedToLinkedPtr(ParseJson(
164 conditions.push_back(ScopedToLinkedPtr(ParseJson(
166 conditions.push_back(ScopedToLinkedPtr(ParseJson(
172 FulfillableConditionSet::Create(NULL, NULL, conditions, &error);
175 EXPECT_EQ(4u, result->conditions().size());
316 " \"conditions\": [ \n"
354 const Rule::ConditionSet& condition_set = rule->conditions();
355 const Rule::ConditionSet::Conditions& conditions =
356 condition_set.conditions();
357 ASSERT_EQ(2u, conditions.size());
358 EXPECT_EQ(3, conditions[0]->max_value);
359 EXPECT_EQ(5, conditions[1]->max_value);
372 const DeclarativeConditionSet<FulfillableCondition>* conditions,
375 if (conditions->conditions().empty()) {
376 *error = "No conditions";
396 " \"conditions\": [ \n"
421 " \"conditions\": [ \n"
439 EXPECT_EQ("No conditions", error);