Home | History | Annotate | Download | only in onc

Lines Matching refs:Validator

25   // to be managed if |managed_onc| is true. A strict validator is used if
34 scoped_ptr<Validator> validator;
36 // Create a strict validator that complains about every error.
37 validator.reset(new Validator(true, true, true, managed_onc));
39 // Create a liberal validator that ignores or repairs non-critical errors.
40 validator.reset(new Validator(false, false, false, managed_onc));
42 validator->SetOncSource(onc_source);
44 repaired_object_ = validator->ValidateAndRepairObject(signature,
50 EXPECT_EQ(Validator::VALID, validation_result_);
57 EXPECT_EQ(Validator::VALID_WITH_WARNINGS, validation_result_);
62 EXPECT_EQ(Validator::INVALID, validation_result_);
67 Validator::Result validation_result_;
110 // the strict and the liberal validator accept the object.
223 // expected repaired object is given, then it is checked that the validator
226 // that the validator returns NULL and the result INVALID.
283 // Strict validator returns INVALID. Liberal validator repairs.
336 // Strict and liberal validator repair identically.
378 // Strict and liberal validator both repair, but with different results.
388 // Strict and liberal validator return both INVALID.