Home
last modified time | relevance | path

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

12345

/external/chromium_org/content/common/input/
Dgesture_event_stream_validator_unittest.cc26 GestureEventStreamValidator validator; in TEST() local
31 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
35 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
39 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
44 GestureEventStreamValidator validator; in TEST() local
50 EXPECT_FALSE(validator.Validate(event, &error_msg)); in TEST()
55 EXPECT_FALSE(validator.Validate(event, &error_msg)); in TEST()
59 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
64 EXPECT_FALSE(validator.Validate(event, &error_msg)); in TEST()
68 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
[all …]
Dtouch_event_stream_validator_unittest.cc18 TouchEventStreamValidator validator; in TEST() local
23 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
28 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
33 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
38 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
43 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
48 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
53 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
58 TouchEventStreamValidator validator; in TEST() local
63 EXPECT_TRUE(validator.Validate(event, &error_msg)); in TEST()
[all …]
/external/chromium_org/extensions/test/data/
Djson_schema_test.js10 var validator = new JSONSchemaValidator();
12 validator.addTypes(types);
13 validator["validate" + type](instance, schema, "");
15 if (validator.errors.length != 0) {
17 for (var i = 0; i < validator.errors.length; i++) {
18 LOG(validator.errors[i].message + " path: " + validator.errors[i].path);
26 var validator = new JSONSchemaValidator();
28 validator.addTypes(types);
29 validator["validate" + type](instance, schema, "");
30 AssertTrue(validator.errors.length === errors.length);
[all …]
/external/chromium_org/chrome/browser/chromeos/policy/
Ddevice_local_account_policy_store.cc76 UserCloudPolicyValidator* validator) { in UpdatePolicy() argument
77 validation_status_ = validator->status(); in UpdatePolicy()
78 if (!validator->success()) { in UpdatePolicy()
84 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); in UpdatePolicy()
90 UserCloudPolicyValidator* validator) { in StoreValidatedPolicy() argument
91 if (!validator->success()) { in StoreValidatedPolicy()
93 validation_status_ = validator->status(); in StoreValidatedPolicy()
99 if (!validator->policy()->SerializeToString(&policy_blob)) { in StoreValidatedPolicy()
150 scoped_ptr<UserCloudPolicyValidator> validator( in Validate() local
153 validator->ValidateUsername(account_id_, false); in Validate()
[all …]
Ddevice_cloud_policy_store_chromeos.cc53 scoped_ptr<DeviceCloudPolicyValidator> validator(CreateValidator(policy)); in Store() local
54 validator->ValidateSignature(public_key->as_string(), in Store()
58 validator->ValidateAgainstCurrentPolicy( in Store()
62 validator.release()->StartValidation( in Store()
84 scoped_ptr<DeviceCloudPolicyValidator> validator(CreateValidator(policy)); in InstallInitialPolicy() local
85 validator->ValidateInitialKey(GetPolicyVerificationKey(), in InstallInitialPolicy()
87 validator.release()->StartValidation( in InstallInitialPolicy()
104 scoped_ptr<DeviceCloudPolicyValidator> validator( in CreateValidator() local
109 validator->ValidateDomain(install_attributes_->GetDomain()); in CreateValidator()
110 validator->ValidatePolicyType(dm_protocol::kChromeDevicePolicyType); in CreateValidator()
[all …]
Duser_cloud_policy_store_chromeos.cc259 scoped_ptr<UserCloudPolicyValidator> validator = in LoadImmediately() local
261 validator->RunValidation(); in LoadImmediately()
262 OnRetrievedPolicyValidated(validator.get()); in LoadImmediately()
268 scoped_ptr<UserCloudPolicyValidator> validator = in ValidatePolicyForStore() local
271 validator->ValidateUsername(username_, true); in ValidatePolicyForStore()
273 validator->ValidateInitialKey(GetPolicyVerificationKey(), in ValidatePolicyForStore()
277 validator->ValidateSignature(policy_key_, in ValidatePolicyForStore()
285 validator.release()->StartValidation( in ValidatePolicyForStore()
291 UserCloudPolicyValidator* validator) { in OnPolicyToStoreValidated() argument
292 validation_status_ = validator->status(); in OnPolicyToStoreValidated()
[all …]
Denrollment_handler_chromeos.cc116 scoped_ptr<DeviceCloudPolicyValidator> validator( in OnPolicyFetched() local
122 validator->ValidateTimestamp(base::Time(), base::Time::NowFromSystemTime(), in OnPolicyFetched()
130 validator->ValidateDomain(domain); in OnPolicyFetched()
132 validator->ValidateDMToken(client->dm_token(), in OnPolicyFetched()
134 validator->ValidatePolicyType(dm_protocol::kChromeDevicePolicyType); in OnPolicyFetched()
135 validator->ValidatePayload(); in OnPolicyFetched()
141 validator->ValidateInitialKey(GetPolicyVerificationKey(), domain); in OnPolicyFetched()
142 validator.release()->StartValidation( in OnPolicyFetched()
243 DeviceCloudPolicyValidator* validator) { in HandlePolicyValidationResult() argument
245 if (validator->success()) { in HandlePolicyValidationResult()
[all …]
/external/chromium_org/components/policy/core/common/cloud/
Duser_cloud_policy_store.cc291 UserCloudPolicyValidator* validator) { in InstallLoadedPolicyAfterValidation() argument
294 validator->status(), in InstallLoadedPolicyAfterValidation()
296 validation_status_ = validator->status(); in InstallLoadedPolicyAfterValidation()
297 if (!validator->success()) { in InstallLoadedPolicyAfterValidation()
305 validator->policy_data()->request_token(); in InstallLoadedPolicyAfterValidation()
306 DVLOG(1) << "Device ID: " << validator->policy_data()->device_id(); in InstallLoadedPolicyAfterValidation()
311 validator->policy_data()->clear_public_key_version(); in InstallLoadedPolicyAfterValidation()
318 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); in InstallLoadedPolicyAfterValidation()
344 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator( in Validate() local
361 validator->ValidateUsername(signin_username_, true); in Validate()
[all …]
Dcloud_policy_validator_unittest.cc59 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator( in ValidatePolicy() local
63 EXPECT_CALL(*this, ValidationCompletion(validator.get())).WillOnce( in ValidatePolicy()
65 validator.release()->StartValidation( in ValidatePolicy()
85 UserCloudPolicyValidator* validator = UserCloudPolicyValidator::Create( in CreateValidator() local
87 validator->ValidateTimestamp(timestamp_, timestamp_, in CreateValidator()
89 validator->ValidateUsername(PolicyBuilder::kFakeUsername, true); in CreateValidator()
91 validator->ValidateDomain(owning_domain_); in CreateValidator()
92 validator->ValidateDMToken(existing_dm_token_, ignore_missing_dm_token_); in CreateValidator()
93 validator->ValidatePolicyType(dm_protocol::kChromeUserPolicyType); in CreateValidator()
94 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_, true); 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 …]
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/
Dgolden.dat1 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
5 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
9 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
13 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
17 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
21 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
25 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
29 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
33 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
37 …/apavlov/dev/blink/src/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/function.j…
[all …]
/external/chromium_org/components/json_schema/
Djson_schema_validator_unittest.cc19 JSONSchemaValidator validator(schema, types); in ExpectValid() local
20 if (validator.Validate(instance)) in ExpectValid()
23 for (size_t i = 0; i < validator.errors().size(); ++i) { in ExpectValid()
25 << validator.errors()[i].path << ": " in ExpectValid()
26 << 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()
/external/droiddriver/src/com/google/android/droiddriver/uiautomation/
DAccessibilityDriver.java33 private Validator validator = new FirstApplicableValidator(new ExemptRootValidator(), field in AccessibilityDriver
46 newUiElement.setValidator(validator); in newUiElement()
54 return validator; in getValidator()
60 public void setValidator(Validator validator) { in setValidator() argument
61 this.validator = validator; in setValidator()
/external/chromium_org/base/i18n/
Dstreaming_utf8_validator_unittest.cc78 StreamingUtf8Validator validator; in TestNumber() local
80 validator.AddBytes(test, sizeof n) == VALID_ENDPOINT) in TestNumber()
239 StreamingUtf8Validator validator; in CheckRange() local
242 validator.AddBytes(sequence.data(), sequence.size())) in CheckRange()
253 StreamingUtf8Validator validator; in CheckRangeByteAtATime() local
259 state = validator.AddBytes(&*cit, 1); in CheckRangeByteAtATime()
278 StreamingUtf8Validator validator; in CheckCombinations() local
283 validator.AddBytes(c1.data(), c1.size()); in CheckCombinations()
284 EXPECT_EQ(expected, validator.AddBytes(c2.data(), c2.size())) in CheckCombinations()
286 validator.Reset(); in CheckCombinations()
[all …]
/external/chromium_org/chrome/browser/chromeos/settings/
Dsession_manager_operation.cc154 policy::DeviceCloudPolicyValidator* validator = in ValidateDeviceSettings() local
172 validator->ValidateAgainstCurrentPolicy( in ValidateDeviceSettings()
176 validator->ValidatePolicyType(policy::dm_protocol::kChromeDevicePolicyType); in ValidateDeviceSettings()
177 validator->ValidatePayload(); in ValidateDeviceSettings()
180 validator->ValidateSignature(public_key_->as_string(), in ValidateDeviceSettings()
184 validator->StartValidation( in ValidateDeviceSettings()
190 policy::DeviceCloudPolicyValidator* validator) { in ReportValidatorStatus() argument
193 if (validator->success()) { in ReportValidatorStatus()
195 policy_data_ = validator->policy_data().Pass(); in ReportValidatorStatus()
196 device_settings_ = validator->payload().Pass(); in ReportValidatorStatus()
[all …]
Dsession_manager_operation_unittest.cc64 policy::DeviceCloudPolicyValidator* validator) { in CheckSuccessfulValidation() argument
65 EXPECT_TRUE(validator->success()); in CheckSuccessfulValidation()
66 EXPECT_TRUE(validator->payload().get()); in CheckSuccessfulValidation()
67 EXPECT_EQ(validator->payload()->SerializeAsString(), in CheckSuccessfulValidation()
243 policy::DeviceCloudPolicyValidator* validator = in TEST_F() local
246 validator->ValidateUsername(policy_.policy_data().username(), true); in TEST_F()
249 validator->ValidateTimestamp( in TEST_F()
253 validator->ValidatePolicyType(policy::dm_protocol::kChromeDevicePolicyType); in TEST_F()
254 validator->ValidatePayload(); in TEST_F()
262 validator->ValidateSignature( in TEST_F()
[all …]
/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/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/lldb/include/lldb/Interpreter/
DOptionValueString.h46 OptionValueString (ValidatorCallback validator,
52 m_validator(validator), in OptionValue()
88 ValidatorCallback validator,
94 m_validator(validator), in OptionValue()
106 ValidatorCallback validator,
112 m_validator(validator), in OptionValue()
/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/droiddriver/src/com/google/android/droiddriver/validators/
DFirstApplicableValidator.java40 for (Validator validator : validators) { in validate()
41 if (validator.isApplicable(element, action)) { in validate()
42 return validator.validate(element, action); in validate()
/external/droiddriver/src/com/google/android/droiddriver/base/
DBaseUiElement.java57 private Validator validator = null; field in BaseUiElement
166 if (validator != null && validator.isApplicable(this, action)) { in perform()
167 String failure = validator.validate(this, action); in perform()
299 public void setValidator(Validator validator) { in setValidator() argument
300 this.validator = validator; in setValidator()
/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/mojo/public/tools/bindings/generators/js_templates/
Dinterface_definition.tmpl115 return validator.validationError.NONE;
133 return validator.validationError.NONE;
140 return validator.validationError.NONE;
155 return validator.validationError.NONE;
160 {{interface.name}}Stub.prototype.validator = validate{{interface.name}}Request;
162 {{interface.name}}Proxy.prototype.validator = validate{{interface.name}}Response;
164 {{interface.name}}Proxy.prototype.validator = null;

12345