Lines Matching defs:validator
78 StreamingUtf8Validator validator;
80 validator.AddBytes(test, sizeof n) == VALID_ENDPOINT)
239 StreamingUtf8Validator validator;
242 validator.AddBytes(sequence.data(), sequence.size()))
253 StreamingUtf8Validator validator;
259 state = validator.AddBytes(&*cit, 1);
278 StreamingUtf8Validator validator;
283 validator.AddBytes(c1.data(), c1.size());
284 EXPECT_EQ(expected, validator.AddBytes(c2.data(), c2.size()))
286 validator.Reset();
316 StreamingUtf8Validator validator;
317 EXPECT_EQ(INVALID, validator.AddBytes("\xC0", 1));
318 EXPECT_EQ(INVALID, validator.AddBytes("a", 1));
319 validator.Reset();
320 EXPECT_EQ(VALID_ENDPOINT, validator.AddBytes("a", 1));