Lines Matching defs:validator
58 // Create a validator.
59 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator(
63 EXPECT_CALL(*this, ValidationCompletion(validator.get())).WillOnce(
65 validator.release()->StartValidation(
85 UserCloudPolicyValidator* validator = UserCloudPolicyValidator::Create(
87 validator->ValidateTimestamp(timestamp_, timestamp_,
89 validator->ValidateUsername(PolicyBuilder::kFakeUsername, true);
91 validator->ValidateDomain(owning_domain_);
92 validator->ValidateDMToken(existing_dm_token_, ignore_missing_dm_token_);
93 validator->ValidatePolicyType(dm_protocol::kChromeUserPolicyType);
94 validator->ValidatePayload();
95 validator->ValidateCachedKey(public_key,
99 validator->ValidateSignature(public_key,
104 validator->ValidateInitialKey(GetPolicyVerificationKey(), owning_domain_);
105 return make_scoped_ptr(validator);
109 void CheckSuccessfulValidation(UserCloudPolicyValidator* validator) {
110 EXPECT_TRUE(validator->success());
112 validator->policy()->SerializeAsString());
114 validator->policy_data()->SerializeAsString());
116 validator->payload()->SerializeAsString());
132 MOCK_METHOD1(ValidationCompletion, void(UserCloudPolicyValidator* validator));
143 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator(
146 validator->RunValidation();
147 CheckSuccessfulValidation(validator.get());
341 // Pass an empty domain to tell validator to extract the domain from the