Home
last modified time | relevance | path

Searched refs:validator (Results 1 – 25 of 71) sorted by relevance

123

/external/chromium_org/chrome/browser/chromeos/policy/
Ddevice_cloud_policy_store_chromeos.cc48 scoped_ptr<DeviceCloudPolicyValidator> validator(CreateValidator(policy)); in Store() local
49 validator->ValidateSignature(*owner_key->public_key(), true); in Store()
50 validator->ValidateAgainstCurrentPolicy( in Store()
54 validator.release()->StartValidation( in Store()
76 scoped_ptr<DeviceCloudPolicyValidator> validator(CreateValidator(policy)); in InstallInitialPolicy() local
77 validator->ValidateInitialKey(); in InstallInitialPolicy()
78 validator.release()->StartValidation( in InstallInitialPolicy()
95 scoped_ptr<DeviceCloudPolicyValidator> validator( in CreateValidator() local
100 validator->ValidateDomain(install_attributes_->GetDomain()); in CreateValidator()
101 validator->ValidatePolicyType(dm_protocol::kChromeDevicePolicyType); in CreateValidator()
[all …]
Ddevice_local_account_policy_store.cc75 UserCloudPolicyValidator* validator) { in UpdatePolicy() argument
76 validation_status_ = validator->status(); in UpdatePolicy()
77 if (!validator->success()) { in UpdatePolicy()
83 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); in UpdatePolicy()
120 UserCloudPolicyValidator* validator) { in StoreValidatedPolicy() argument
121 if (!validator->success()) { in StoreValidatedPolicy()
123 validation_status_ = validator->status(); in StoreValidatedPolicy()
129 if (!validator->policy()->SerializeToString(&policy_blob)) { in StoreValidatedPolicy()
178 scoped_ptr<UserCloudPolicyValidator> validator( in Validate() local
181 validator->ValidateUsername(account_id_); in Validate()
[all …]
Duser_cloud_policy_store_chromeos.cc253 scoped_ptr<UserCloudPolicyValidator> validator = in LoadImmediately() local
256 validator->ValidateUsername(username_); in LoadImmediately()
258 validator->ValidateSignature(policy_key_, allow_rotation); in LoadImmediately()
259 validator->RunValidation(); in LoadImmediately()
260 OnRetrievedPolicyValidated(validator.get()); in LoadImmediately()
266 scoped_ptr<UserCloudPolicyValidator> validator = in ValidatePolicyForStore() local
269 validator->ValidateUsername(username_); in ValidatePolicyForStore()
271 validator->ValidateInitialKey(); in ValidatePolicyForStore()
274 validator->ValidateSignature(policy_key_, allow_rotation); in ValidatePolicyForStore()
279 validator.release()->StartValidation( in ValidatePolicyForStore()
[all …]
Denrollment_handler_chromeos.cc104 scoped_ptr<DeviceCloudPolicyValidator> validator( in OnPolicyFetched() local
110 validator->ValidateTimestamp(base::Time(), base::Time::NowFromSystemTime(), in OnPolicyFetched()
113 validator->ValidateDomain(install_attributes_->GetDomain()); in OnPolicyFetched()
114 validator->ValidateDMToken(client->dm_token(), in OnPolicyFetched()
116 validator->ValidatePolicyType(dm_protocol::kChromeDevicePolicyType); in OnPolicyFetched()
117 validator->ValidatePayload(); in OnPolicyFetched()
118 validator->ValidateInitialKey(); in OnPolicyFetched()
119 validator.release()->StartValidation( in OnPolicyFetched()
190 DeviceCloudPolicyValidator* validator) { in PolicyValidated() argument
192 if (validator->success()) { in PolicyValidated()
[all …]
Duser_cloud_policy_store_chromeos.h68 void OnPolicyToStoreValidated(UserCloudPolicyValidator* validator);
82 void OnRetrievedPolicyValidated(UserCloudPolicyValidator* validator);
94 UserCloudPolicyValidator* validator);
Ddevice_local_account_policy_store.h61 void UpdatePolicy(UserCloudPolicyValidator* validator);
64 void StoreValidatedPolicy(UserCloudPolicyValidator* validator);
/external/chromium/chrome/common/
Djson_schema_validator_unittest.cc20 JSONSchemaValidator validator(schema, types); in ExpectValid() local
21 if (validator.Validate(instance)) in ExpectValid()
24 for (size_t i = 0; i < validator.errors().size(); ++i) { in ExpectValid()
26 << validator.errors()[i].path << ": " in ExpectValid()
27 << validator.errors()[i].message; in ExpectValid()
36 JSONSchemaValidator validator(schema, types); in ExpectNotValid() local
37 if (validator.Validate(instance)) { in ExpectNotValid()
42 ASSERT_EQ(1u, validator.errors().size()) << test_source; in ExpectNotValid()
43 EXPECT_EQ(expected_error_path, validator.errors()[0].path) << test_source; in ExpectNotValid()
44 EXPECT_EQ(expected_error_message, validator.errors()[0].message) in ExpectNotValid()
Dweb_apps.cc227 JSONSchemaValidator validator(static_cast<DictionaryValue*>(schema.get())); in ParseWebAppFromDefinitionFile() local
231 validator.set_default_allow_additional_properties(true); in ParseWebAppFromDefinitionFile()
233 if (!validator.Validate(definition_value)) { in ParseWebAppFromDefinitionFile()
235 validator.errors()[0].path + ": " + validator.errors()[0].message); in ParseWebAppFromDefinitionFile()
/external/chromium_org/components/policy/core/common/cloud/
Duser_cloud_policy_store.cc179 UserCloudPolicyValidator* validator) { in InstallLoadedPolicyAfterValidation() argument
180 validation_status_ = validator->status(); in InstallLoadedPolicyAfterValidation()
181 if (!validator->success()) { in InstallLoadedPolicyAfterValidation()
189 validator->policy_data()->request_token(); in InstallLoadedPolicyAfterValidation()
190 DVLOG(1) << "Device ID: " << validator->policy_data()->device_id(); in InstallLoadedPolicyAfterValidation()
192 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); in InstallLoadedPolicyAfterValidation()
214 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator( in Validate() local
220 validator->ValidateUsername(signin_username_); in Validate()
225 validator.release()->StartValidation(callback); in Validate()
228 validator->RunValidation(); in Validate()
[all …]
Dcloud_policy_validator_unittest.cc48 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator(); in Validate() local
51 EXPECT_CALL(*this, ValidationCompletion(validator.get())).WillOnce( in Validate()
53 validator.release()->StartValidation( in Validate()
66 UserCloudPolicyValidator* validator = UserCloudPolicyValidator::Create( in CreateValidator() local
68 validator->ValidateTimestamp(timestamp_, timestamp_, in CreateValidator()
70 validator->ValidateUsername(PolicyBuilder::kFakeUsername); in CreateValidator()
71 validator->ValidateDomain(PolicyBuilder::kFakeDomain); in CreateValidator()
72 validator->ValidateDMToken(existing_dm_token_, ignore_missing_dm_token_); in CreateValidator()
73 validator->ValidatePolicyType(dm_protocol::kChromeUserPolicyType); in CreateValidator()
74 validator->ValidatePayload(); in CreateValidator()
[all …]
Duser_cloud_policy_store_base.cc31 UserCloudPolicyValidator* validator = in CreateValidator() local
33 validator->ValidatePolicyType(GetChromeUserPolicyType()); in CreateValidator()
34 validator->ValidateAgainstCurrentPolicy( in CreateValidator()
38 validator->ValidatePayload(); in CreateValidator()
39 return scoped_ptr<UserCloudPolicyValidator>(validator); in CreateValidator()
Dcomponent_cloud_policy_store.cc279 scoped_ptr<ComponentCloudPolicyValidator> validator( in ValidateProto() local
282 validator->ValidateUsername(username_); in ValidateProto()
283 validator->ValidateDMToken(dm_token_, in ValidateProto()
286 validator->ValidatePolicyType(policy_type); in ValidateProto()
288 validator->ValidateSettingsEntityId(settings_entity_id); in ValidateProto()
289 validator->ValidatePayload(); in ValidateProto()
291 validator->RunValidation(); in ValidateProto()
292 if (!validator->success()) in ValidateProto()
295 em::ExternalPolicyData* data = validator->payload().get(); in ValidateProto()
310 payload->Swap(validator->payload().get()); in ValidateProto()
[all …]
Duser_cloud_policy_store.h77 void InstallLoadedPolicyAfterValidation(UserCloudPolicyValidator* validator);
80 void StorePolicyAfterValidation(UserCloudPolicyValidator* validator);
/external/chromium_org/components/json_schema/
Djson_schema_validator_unittest.cc21 JSONSchemaValidator validator(schema, types); in ExpectValid() local
22 if (validator.Validate(instance)) in ExpectValid()
25 for (size_t i = 0; i < validator.errors().size(); ++i) { in ExpectValid()
27 << validator.errors()[i].path << ": " in ExpectValid()
28 << validator.errors()[i].message; in ExpectValid()
38 JSONSchemaValidator validator(schema, types); in ExpectNotValid() local
39 if (validator.Validate(instance)) { in ExpectNotValid()
44 ASSERT_EQ(1u, validator.errors().size()) << test_source; in ExpectNotValid()
45 EXPECT_EQ(expected_error_path, validator.errors()[0].path) << test_source; in ExpectNotValid()
46 EXPECT_EQ(expected_error_message, validator.errors()[0].message) in ExpectNotValid()
/external/chromium/chrome/common/extensions/docs/examples/extensions/fx/
Dcontent.js22 function handleEvent(event, type, validator) { argument
23 if (validator) {
24 if (!validator(event)) {
39 function listenAndCoalesce(target, type, validator) { argument
41 handleEvent(event, type, validator);
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/fx/
Dcontent.js22 function handleEvent(event, type, validator) { argument
23 if (validator) {
24 if (!validator(event)) {
39 function listenAndCoalesce(target, type, validator) { argument
41 handleEvent(event, type, validator);
/external/chromium_org/chrome/browser/chromeos/settings/
Dsession_manager_operation.cc161 policy::DeviceCloudPolicyValidator* validator = in ValidateDeviceSettings() local
179 validator->ValidateAgainstCurrentPolicy( in ValidateDeviceSettings()
183 validator->ValidatePolicyType(policy::dm_protocol::kChromeDevicePolicyType); in ValidateDeviceSettings()
184 validator->ValidatePayload(); in ValidateDeviceSettings()
185 validator->ValidateSignature(*owner_key_->public_key(), false); in ValidateDeviceSettings()
186 validator->StartValidation( in ValidateDeviceSettings()
192 policy::DeviceCloudPolicyValidator* validator) { in ReportValidatorStatus() argument
195 if (validator->success()) { in ReportValidatorStatus()
197 policy_data_ = validator->policy_data().Pass(); in ReportValidatorStatus()
198 device_settings_ = validator->payload().Pass(); in ReportValidatorStatus()
[all …]
Dsession_manager_operation_unittest.cc49 policy::DeviceCloudPolicyValidator* validator) { in CheckSuccessfulValidation() argument
50 EXPECT_TRUE(validator->success()); in CheckSuccessfulValidation()
51 EXPECT_TRUE(validator->payload().get()); in CheckSuccessfulValidation()
52 EXPECT_EQ(validator->payload()->SerializeAsString(), in CheckSuccessfulValidation()
254 policy::DeviceCloudPolicyValidator* validator = in TEST_F() local
257 validator->ValidateUsername(policy_.policy_data().username()); in TEST_F()
258 validator->ValidateTimestamp( in TEST_F()
262 validator->ValidatePolicyType(policy::dm_protocol::kChromeDevicePolicyType); in TEST_F()
263 validator->ValidatePayload(); in TEST_F()
266 validator->ValidateSignature(public_key, false); in TEST_F()
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/
DFetchValidator.java47 FetchValidator validator = new FetchValidator(); in main() local
48 validator.install = "l:/vabase/team/sonia"; in main()
49 validator.list = in main()
51 validator.getListOfFeatures(validator.list); in main()
53 validator.execute(); in main()
/external/chromium_org/chromeos/tools/onc_validator/
Donc_validator.cc124 chromeos::onc::Validator validator( in main() local
131 validator.SetOncSource(::onc::ONC_SOURCE_USER_POLICY); in main()
133 validator.SetOncSource(::onc::ONC_SOURCE_DEVICE_POLICY); in main()
135 validator.SetOncSource(::onc::ONC_SOURCE_USER_IMPORT); in main()
151 validator.ValidateAndRepairObject(signature, *onc_object, &result); in main()
/external/mockito/src/org/mockito/internal/creation/
DMockSettingsImpl.java146 MockCreationValidator validator = new MockCreationValidator(); in validatedSettings() local
148 validator.validateType(typeToMock); in validatedSettings()
149 validator.validateExtraInterfaces(typeToMock, source.getExtraInterfaces()); in validatedSettings()
150 validator.validateMockedType(typeToMock, source.getSpiedInstance()); in validatedSettings()
155 validator.validateSerializable(typeToMock, source.isSerializable()); in validatedSettings()
/external/chromium_org/chrome/browser/component_updater/
Dcomponent_unpacker.cc130 CRXValidator validator(file.get()); in ComponentUnpacker() local
131 if (!validator.valid()) { in ComponentUnpacker()
142 sha256->Update(&(validator.public_key()[0]), validator.public_key().size()); in ComponentUnpacker()
154 if (validator.delta()) { // Package is a diff package. in ComponentUnpacker()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/custom/
DCustomFilterGlobalContext.cpp64 …OwnPtr<ANGLEPlatformBridge> validator = adoptPtr(new ANGLEPlatformBridge(SH_ESSL_OUTPUT, shaderSpe… in createShaderValidator() local
67 validator->setResources(resources); in createShaderValidator()
68 return validator.release(); in createShaderValidator()
/external/chromium_org/third_party/WebKit/Source/web/
DAssociatedURLLoader.cpp209 …HTTPResponseHeaderValidator validator(m_options.crossOriginRequestPolicy == WebURLLoaderOptions::C… in didReceiveResponse() local
211 validatedResponse.visitHTTPHeaderFields(&validator); in didReceiveResponse()
214 const HTTPHeaderSet& blockedHeaders = validator.blockedHeaders(); in didReceiveResponse()
336 HTTPRequestHeaderValidator validator; in loadAsynchronously() local
337 newRequest.visitHTTPHeaderFields(&validator); in loadAsynchronously()
338 allowLoad = validator.isSafe(); in loadAsynchronously()
/external/chromium_org/chromeos/network/onc/
Donc_validator_unittest.cc34 scoped_ptr<Validator> validator; in Validate() local
37 validator.reset(new Validator(true, true, true, managed_onc)); in Validate()
40 validator.reset(new Validator(false, false, false, managed_onc)); in Validate()
42 validator->SetOncSource(onc_source); in Validate()
44 repaired_object_ = validator->ValidateAndRepairObject(signature, in Validate()

123