/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/ |
ResourceNameValidatorTest.java | 34 ResourceNameValidator validator = ResourceNameValidator.create(true, local 36 assertTrue(validator.isValid("foo") == null); 37 assertTrue(validator.isValid("foo.xml") == null); 38 assertTrue(validator.isValid("Foo123_$") == null); 39 assertTrue(validator.isValid("foo.xm") == null); // For non-file types, . => _ 42 assertTrue(validator.isValid("") != null); 43 assertTrue(validator.isValid(" ") != null); 44 assertTrue(validator.isValid("foo bar") != null); 45 assertTrue(validator.isValid("1foo") != null); 46 assertTrue(validator.isValid("foo%bar") != null) 70 ResourceNameValidator validator = ResourceNameValidator.create(false, (IProject) null, local 84 ResourceNameValidator validator = ResourceNameValidator.create(true, existing, local [all...] |
/external/chromium/chrome/common/ |
json_schema_validator_unittest.cc | 20 JSONSchemaValidator validator(schema, types); 21 if (validator.Validate(instance)) 24 for (size_t i = 0; i < validator.errors().size(); ++i) { 26 << validator.errors()[i].path << ": " 27 << validator.errors()[i].message; 36 JSONSchemaValidator validator(schema, types); 37 if (validator.Validate(instance)) { 42 ASSERT_EQ(1u, validator.errors().size()) << test_source; 43 EXPECT_EQ(expected_error_path, validator.errors()[0].path) << test_source; 44 EXPECT_EQ(expected_error_message, validator.errors()[0].message [all...] |
/external/chromium_org/components/policy/core/common/cloud/ |
user_cloud_policy_store_base.cc | 30 // Configure the validator. 31 UserCloudPolicyValidator* validator = local 33 validator->ValidatePolicyType(GetChromeUserPolicyType()); 34 validator->ValidateAgainstCurrentPolicy( 38 validator->ValidatePayload(); 39 return scoped_ptr<UserCloudPolicyValidator>(validator);
|
user_cloud_policy_store.cc | 179 UserCloudPolicyValidator* validator) { 180 validation_status_ = validator->status(); 181 if (!validator->success()) { 189 validator->policy_data()->request_token(); 190 DVLOG(1) << "Device ID: " << validator->policy_data()->device_id(); 192 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); 213 // Configure the validator. 214 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator( local 220 validator->ValidateUsername(signin_username_) [all...] |
cloud_policy_validator_unittest.cc | 47 // Create a validator. 48 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator(); local 51 EXPECT_CALL(*this, ValidationCompletion(validator.get())).WillOnce( 53 validator.release()->StartValidation( 66 UserCloudPolicyValidator* validator = UserCloudPolicyValidator::Create( local 68 validator->ValidateTimestamp(timestamp_, timestamp_, 70 validator->ValidateUsername(PolicyBuilder::kFakeUsername); 71 validator->ValidateDomain(PolicyBuilder::kFakeDomain); 72 validator->ValidateDMToken(existing_dm_token_, ignore_missing_dm_token_); 73 validator->ValidatePolicyType(dm_protocol::kChromeUserPolicyType) 113 scoped_ptr<UserCloudPolicyValidator> validator = CreateValidator(); local [all...] |
user_cloud_policy_store.h | 77 void InstallLoadedPolicyAfterValidation(UserCloudPolicyValidator* validator); 80 void StorePolicyAfterValidation(UserCloudPolicyValidator* validator);
|
/frameworks/ex/common/tests/src/com/android/common/ |
Rfc822ValidatorTest.java | 30 Rfc822Validator validator = new Rfc822Validator("gmail.com"); local 37 assertTrue(email + " should be a valid email address", validator.isValid(email)); 45 assertFalse(email + " should not be a valid email address", validator.isValid(email)); 55 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); 61 Rfc822Validator validator = new Rfc822Validator(null); local 70 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); 76 Rfc822Validator validator = new Rfc822Validator("google.com"); local 77 validator.setRemoveInvalid(true); 86 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString());
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
device_cloud_policy_store_chromeos.cc | 48 scoped_ptr<DeviceCloudPolicyValidator> validator(CreateValidator(policy)); 49 validator->ValidateSignature(*owner_key->public_key(), true); 50 validator->ValidateAgainstCurrentPolicy( 54 validator.release()->StartValidation( 76 scoped_ptr<DeviceCloudPolicyValidator> validator(CreateValidator(policy)); 77 validator->ValidateInitialKey(); 78 validator.release()->StartValidation( 95 scoped_ptr<DeviceCloudPolicyValidator> validator( 100 validator->ValidateDomain(install_attributes_->GetDomain()); 101 validator->ValidatePolicyType(dm_protocol::kChromeDevicePolicyType) [all...] |
device_local_account_policy_store.cc | 75 UserCloudPolicyValidator* validator) { 76 validation_status_ = validator->status(); 77 if (!validator->success()) { 83 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); 120 UserCloudPolicyValidator* validator) { 121 if (!validator->success()) { 123 validation_status_ = validator->status(); 129 if (!validator->policy()->SerializeToString(&policy_blob)) { 178 scoped_ptr<UserCloudPolicyValidator> validator( [all...] |
user_cloud_policy_store_chromeos.cc | 253 scoped_ptr<UserCloudPolicyValidator> validator = local 256 validator->ValidateUsername(username_); 258 validator->ValidateSignature(policy_key_, allow_rotation); 259 validator->RunValidation(); 260 OnRetrievedPolicyValidated(validator.get()); 265 // Create and configure a validator. 266 scoped_ptr<UserCloudPolicyValidator> validator = local 269 validator->ValidateUsername(username_); 271 validator->ValidateInitialKey(); 274 validator->ValidateSignature(policy_key_, allow_rotation) 365 scoped_ptr<UserCloudPolicyValidator> validator = local 417 scoped_ptr<UserCloudPolicyValidator> validator = local [all...] |
enrollment_handler_chromeos.cc | 104 scoped_ptr<DeviceCloudPolicyValidator> validator( 110 validator->ValidateTimestamp(base::Time(), base::Time::NowFromSystemTime(), 113 validator->ValidateDomain(install_attributes_->GetDomain()); 114 validator->ValidateDMToken(client->dm_token(), 116 validator->ValidatePolicyType(dm_protocol::kChromeDevicePolicyType); 117 validator->ValidatePayload(); 118 validator->ValidateInitialKey(); 119 validator.release()->StartValidation( 190 DeviceCloudPolicyValidator* validator) { 192 if (validator->success()) [all...] |
user_cloud_policy_store_chromeos.h | 68 void OnPolicyToStoreValidated(UserCloudPolicyValidator* validator); 82 void OnRetrievedPolicyValidated(UserCloudPolicyValidator* validator); 94 UserCloudPolicyValidator* validator);
|
device_local_account_policy_store.h | 61 void UpdatePolicy(UserCloudPolicyValidator* validator); 64 void StoreValidatedPolicy(UserCloudPolicyValidator* validator);
|
device_cloud_policy_store_chromeos.h | 59 // Create a validator for |policy| with basic device policy configuration and 66 void OnPolicyToStoreValidated(DeviceCloudPolicyValidator* validator);
|
/external/chromium_org/components/json_schema/ |
json_schema_validator_unittest.cc | 21 JSONSchemaValidator validator(schema, types); 22 if (validator.Validate(instance)) 25 for (size_t i = 0; i < validator.errors().size(); ++i) { 27 << validator.errors()[i].path << ": " 28 << validator.errors()[i].message; 38 JSONSchemaValidator validator(schema, types); 39 if (validator.Validate(instance)) { 44 ASSERT_EQ(1u, validator.errors().size()) << test_source; 45 EXPECT_EQ(expected_error_path, validator.errors()[0].path) << test_source; 46 EXPECT_EQ(expected_error_message, validator.errors()[0].message [all...] |
/external/chromium/chrome/common/extensions/docs/examples/extensions/fx/ |
content.js | 20 // |validator| is a function which should return true if the event is 22 function handleEvent(event, type, validator) { 23 if (validator) { 24 if (!validator(event)) { 39 function listenAndCoalesce(target, type, validator) { 41 handleEvent(event, type, validator);
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/fx/ |
content.js | 20 // |validator| is a function which should return true if the event is 22 function handleEvent(event, type, validator) { 23 if (validator) { 24 if (!validator(event)) { 39 function listenAndCoalesce(target, type, validator) { 41 handleEvent(event, type, validator);
|
/external/chromium_org/third_party/ots/test/ |
test_malicious_fonts.sh | 10 CHECKER=./validator-checker
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
FetchValidator.java | 47 FetchValidator validator = new FetchValidator(); local 48 validator.install = "l:/vabase/team/sonia"; 49 validator.list = 51 validator.getListOfFeatures(validator.list); 53 validator.execute();
|
/external/chromium_org/chrome/browser/chromeos/settings/ |
session_manager_operation.cc | 161 policy::DeviceCloudPolicyValidator* validator = local 179 validator->ValidateAgainstCurrentPolicy( 183 validator->ValidatePolicyType(policy::dm_protocol::kChromeDevicePolicyType); 184 validator->ValidatePayload(); 185 validator->ValidateSignature(*owner_key_->public_key(), false); 186 validator->StartValidation( 192 policy::DeviceCloudPolicyValidator* validator) { 195 if (validator->success()) { 197 policy_data_ = validator->policy_data().Pass(); 198 device_settings_ = validator->payload().Pass() [all...] |
session_manager_operation_unittest.cc | 49 policy::DeviceCloudPolicyValidator* validator) { 50 EXPECT_TRUE(validator->success()); 51 EXPECT_TRUE(validator->payload().get()); 52 EXPECT_EQ(validator->payload()->SerializeAsString(), 254 policy::DeviceCloudPolicyValidator* validator = local 257 validator->ValidateUsername(policy_.policy_data().username()); 258 validator->ValidateTimestamp( 262 validator->ValidatePolicyType(policy::dm_protocol::kChromeDevicePolicyType); 263 validator->ValidatePayload(); 266 validator->ValidateSignature(public_key, false) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/custom/ |
CustomFilterGlobalContext.cpp | 64 OwnPtr<ANGLEPlatformBridge> validator = adoptPtr(new ANGLEPlatformBridge(SH_ESSL_OUTPUT, shaderSpec)); local 67 validator->setResources(resources); 68 return validator.release();
|
/external/chromium_org/chromeos/tools/onc_validator/ |
onc_validator.cc | 124 chromeos::onc::Validator validator( 131 validator.SetOncSource(::onc::ONC_SOURCE_USER_POLICY); 133 validator.SetOncSource(::onc::ONC_SOURCE_DEVICE_POLICY); 135 validator.SetOncSource(::onc::ONC_SOURCE_USER_IMPORT); 150 chromeos::onc::Validator::Result result; 151 validator.ValidateAndRepairObject(signature, *onc_object, &result); 154 case chromeos::onc::Validator::VALID: 156 case chromeos::onc::Validator::VALID_WITH_WARNINGS: 158 case chromeos::onc::Validator::INVALID [all...] |
/external/mockito/src/org/mockito/internal/creation/ |
MockSettingsImpl.java | 146 MockCreationValidator validator = new MockCreationValidator();
local 148 validator.validateType(typeToMock);
149 validator.validateExtraInterfaces(typeToMock, source.getExtraInterfaces());
150 validator.validateMockedType(typeToMock, source.getSpiedInstance());
153 // validator.validateDelegatedInstance(classToMock, settings.getDelegatedInstance());
155 validator.validateSerializable(typeToMock, source.isSerializable());
|
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/ |
build-jsdoc-validator-jar.sh | 10 jar_name=jsdoc-validator.jar
|