/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZFileReadOnlyTest.java | 21 import static org.junit.Assert.fail; 39 fail(); in cannotCreateRoFileOnNonExistingFile() 60 fail(); in cannotUpdateInRoMode() 72 fail(); in cannotAddFilesInRoMode() 85 fail(); in cannotAddRecursivelyInRoMode() 97 fail(); in cannotReplaceFilesInRoMode() 111 fail(); in cannotDeleteFilesInRoMode() 124 fail(); in cannotMergeInRoMode() 137 fail(); in cannotTouchInRoMode() 149 fail(); in cannotRealignInRoMode() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationXmlParserTest.java | 20 import static org.junit.Assert.fail; 85 fail("Should have thrown an exception."); in testParse_interleaved() 156 fail("ConfigurationException not thrown"); in testParse_objectMissingAttr() 169 fail("ConfigurationException not thrown"); in testParse_optionMissingAttr() 222 fail("ConfigurationException not thrown"); in testParse_includeMissing() 234 fail("ConfigurationException not thrown"); in testParse_badTag() 246 fail("ConfigurationException not thrown"); in testParse_xml() 295 fail("An exception should have been thrown."); in testParse_deviceTagNoName() 328 fail("No exception should have been thrown."); in testParse_deviceTagSameName() 354 fail("An exception should have been thrown."); in testParse_deviceTagAndObjectOutside() [all …]
|
D | ConfigurationFactoryTest.java | 277 fail("did not throw ConfigurationException"); in testCreateConfigurationFromArgs_missing() 301 fail("did not throw ConfigurationException"); in testCreateConfigurationFromArgs_empty() 326 fail("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_unprocessedArgs() 483 fail("Should have thrown an exception."); in testCreateConfigurationFromArgs_repeatedTemplate() 505 fail("Should have thrown an exception."); in testCreateConfigurationFromArgs_templateInclude_multiKey() 520 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_unspecified() 554 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_missing() 634 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_missing() 657 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_nodefault() 677 fail(e.getMessage()); in testCreateConfigurationFromArgs_include_dependent() [all …]
|
D | OptionSetterTest.java | 275 fail("ConfigurationException not thrown"); in testOptionSetter_noType() 287 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptions() 300 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptionsUnsupportedType() 378 fail("ConfigurationException not thrown"); in testOptionSetter_sharedOptionsDiffType() 439 fail("ConfigurationException not thrown"); in testOptionSetter_unparamType() 451 fail("ConfigurationException not thrown"); in testOptionSetter_genericType() 475 fail("ConfigurationException not thrown"); in testOptionSetter_badOptionName() 488 fail("ConfigurationException not thrown"); in testIsBooleanOption_unknown() 526 fail("ConfigurationException not thrown"); in testSetOptionValue_unknown() 539 fail("ConfigurationException not thrown"); in testSetOptionValue_unknownType() [all …]
|
D | ArgsOptionParserTest.java | 265 fail("ConfigurationException not thrown when updating an IMMUTABLE option"); in testOptionUpdateRule_immutable() 276 fail("ConfigurationException not thrown when updating an IMMUTABLE option"); in testOptionUpdateRule_immutable() 320 fail("ConfigurationException not thrown when assigning a global option to an @Option " + in testNonGlobalOptionSource_global() 328 fail("ConfigurationException not thrown when assigning a global option to an @Option " + in testNonGlobalOptionSource_global() 400 fail("ConfigurationException not thrown"); in testParseMapArg_mismatchKeyType() 420 fail("ConfigurationException not thrown"); in testParseMapArg_mismatchValueType() 438 fail("ConfigurationException not thrown"); in testParseMapArg_missingKey() 455 fail("ConfigurationException not thrown"); in testParseMapArg_missingValue() 564 fail("ConfigurationException not thrown"); in testParse_missingValue() 578 fail("ConfigurationException not thrown"); in testParse_optionNotPresent() [all …]
|
D | OptionCopierTest.java | 21 import static org.junit.Assert.fail; 205 fail("ConfigurationException not thrown"); in testCopyOptions_wrongType() 218 fail("ConfigurationException not thrown"); in testCopyOptions_collectionToPrimitive() 232 fail("ConfigurationException not thrown"); in testCopyOptions_primitiveToCollection_null() 269 fail("ConfigurationException not thrown"); in testCopyOptions_primitiveToCollection_differentPrimitive() 285 fail("ConfigurationException not thrown"); in testCopyOptions_nullCollection()
|
D | ConfigurationTest.java | 141 fail("IllegalStateException not thrown"); in testGetConfigurationObject_typeIsList() 158 fail("IllegalStateException not thrown"); in testGetConfigurationObject_forList() 172 fail("setConfigurationObject did not throw ConfigurationException"); in testSetConfigurationObject_wrongtype() 196 fail("setConfigurationObject did not throw ConfigurationException"); in testSetConfigurationObjectList_wrongtype() 352 fail("ConfigurationException is not thrown for a map option without retrievable key"); in testInjectParsedMapOptionValueNoKey() 369 fail("ConfigurationException is not thrown for a map option with ambiguous key"); in testInjectParsedMapOptionValueAmbiguousKey() 584 fail("Should have thrown an exception."); in testValidateOptionsShardException() 604 fail("Should have thrown an exception."); in testValidateOptionsShardIndexException() 628 fail("Should have thrown an exception."); in testValidateOptionsShardIndexAboveShardCount()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | ByteArrayListTest.java | 155 fail("IndexOutOfBoundsException not thrown"); in testRetrieve() 201 fail("IllegalArgumentException not thrown"); in testLimits_setSize() 212 fail("IllegalArgumentException not thrown"); in testLimits_ensureCapacity() 223 fail("IndexOutOfBoundsException not thrown"); in testLimits_get() 231 fail("IndexOutOfBoundsException not thrown"); in testLimits_get() 240 fail("IndexOutOfBoundsException not thrown"); in testLimits_set() 248 fail("IndexOutOfBoundsException not thrown"); in testLimits_set() 257 fail("IllegalArgumentException not thrown"); in testLimits_constructor() 266 fail("IllegalArgumentException not thrown"); in testLimits_constructor() 275 fail("IllegalArgumentException not thrown"); in testLimits_constructor()
|
D | RunUtilTest.java | 22 import static org.junit.Assert.fail; 161 fail("RunInterruptedException was expected, but not thrown."); in testRunTimed_interrupted() 198 fail("could set working dir on RunUtil.getDefault()"); in testSetWorkingDir_default() 212 fail("could set env var on RunUtil.getDefault()"); in testSetEnvVariable_default() 226 fail("could unset env var on RunUtil.getDefault()"); in testUnsetEnvVariable_default() 282 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt() 301 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt_delayed() 318 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt_multiple() 340 fail("Failed to create output files: " + e.getMessage()); in testRuntimedCmd_withFileOutputStream() 357 fail(e.getMessage()); in testRuntimedCmd_withFileOutputStream() [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiDppTest.py | 189 asserts.fail("gen_uri: Failed to generate a URI. Command used: %s" % cmd) 192 asserts.fail("gen_uri: Helper device not responding correctly, may need to restart it." 216 asserts.fail("get_uri: Failed to read URI. Command used: %s" % cmd) 235 asserts.fail("del_uri: Failed to delete URI. Command used: %s" % cmd) 259 asserts.fail("start_responder: Must specify net_role sta or ap") 316 asserts.fail( 324 asserts.fail( 347 asserts.fail("start_responder: Must specify net_role sta or ap") 357 asserts.fail("start_responder_enrollee: Failure. Command used: %s" % cmd) 369 asserts.fail("stop_responder: Failed to stop responder") [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/ |
D | ArgsOptionParserTest.java | 247 fail("ConfigurationException not thrown when updating an IMMUTABLE option"); in testOptionUpdateRule_immutable() 258 fail("ConfigurationException not thrown when updating an IMMUTABLE option"); in testOptionUpdateRule_immutable() 302 fail("ConfigurationException not thrown when assigning a global option to an @Option " + in testNonGlobalOptionSource_global() 310 fail("ConfigurationException not thrown when assigning a global option to an @Option " + in testNonGlobalOptionSource_global() 365 fail("ConfigurationException not thrown"); in testParseMapArg_mismatchKeyType() 385 fail("ConfigurationException not thrown"); in testParseMapArg_mismatchValueType() 403 fail("ConfigurationException not thrown"); in testParseMapArg_missingKey() 420 fail("ConfigurationException not thrown"); in testParseMapArg_missingValue() 529 fail("ConfigurationException not thrown"); in testParse_missingValue() 543 fail("ConfigurationException not thrown"); in testParse_optionNotPresent() [all …]
|
D | OptionSetterTest.java | 217 fail("ConfigurationException not thrown"); in testOptionSetter_noType() 229 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptions() 307 fail("ConfigurationException not thrown"); in testOptionSetter_sharedOptionsDiffType() 345 fail("ConfigurationException not thrown"); in testOptionSetter_unparamType() 357 fail("ConfigurationException not thrown"); in testOptionSetter_genericType() 381 fail("ConfigurationException not thrown"); in testOptionSetter_badOptionName() 394 fail("ConfigurationException not thrown"); in testIsBooleanOption_unknown() 432 fail("ConfigurationException not thrown"); in testSetOptionValue_unknown() 445 fail("ConfigurationException not thrown"); in testSetOptionValue_unknownType() 458 fail("ConfigurationException not thrown"); in testSetOptionValue_unparameterizedType() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ValidateSuiteConfigHelperTest.java | 19 import static org.junit.Assert.fail; 73 fail("Should have thrown an exception."); in testNotRunningAsSuite_buildProvider() 93 fail("Should have thrown an exception."); in testNotRunningAsSuite_MultiDevice_buildProvider() 127 fail("Should have thrown an exception."); in testNotRunningAsSuite_resultReporter() 143 fail("Should have thrown an exception."); in testNotRunningAsSuite_multi_resultReporter() 168 fail("Should have thrown an exception."); in testTargetPrep_badPreparer() 185 fail("Should have thrown an exception."); in testTargetPrep_badMultiPreparer() 224 fail("Should have thrown an exception."); in testMetricCollectors() 260 fail("Should have thrown an exception."); in testModuleController_fail()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | PerfettoPreparer.java | 79 fail("Failed to find the local binary perfetto file", null, device); in setUp() 81 fail("Failed to push the binary perfetto file", null, device); in setUp() 88 fail("Failed to read the perfetto text file", e, device); in setUp() 94 fail("Failed to parse the perfetto text config file", e, device); in setUp() 105 fail("Failed to push the perfetto file", null, device); in setUp() 108 fail("Failed to write the perfetto binary file", e, device); in setUp() 119 private void fail(String message, Throwable cause, ITestDevice device) throws TargetSetupError { in fail() method in PerfettoPreparer
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 24 import static org.junit.Assert.fail; 161 fail("installPackage should have thrown an Unsupported exception, not dnae"); in testInstallPackages_exception() 163 fail("installPackage should have thrown an exception"); in testInstallPackages_exception() 176 fail("uninstallPackage should have thrown an Unsupported exception, not dnae"); in testUninstallPackages_exception() 178 fail("uninstallPackageForUser should have thrown an exception"); in testUninstallPackages_exception() 192 fail("installPackage should have thrown an Unsupported exception, not dnae"); in testInstallPackagesBool_exception() 194 fail("installPackage should have thrown an exception"); in testInstallPackagesBool_exception() 208 fail("installPackageForUser should have thrown an Unsupported exception, not dnae"); in testInstallPackagesForUser_exception() 210 fail("installPackageForUser should have thrown an exception"); in testInstallPackagesForUser_exception() 224 fail("installPackageForUser should have thrown an Unsupported exception, not dnae"); in testInstallPackagesForUserWithPermission_exception() [all …]
|
D | TestDeviceTest.java | 367 fail(String.format("DeviceNotAvailableException not thrown; productType was '%s'", in testGetProductType_fastbootFail() 398 fail("DeviceNotAvailableException not thrown"); in testGetProductType_adbFail() 483 fail(); in testRecoverDevice_ThrowException() 534 fail("DeviceNotAvailableException not thrown"); in testExecuteShellCommand_recoveryFail() 726 fail("DeviceUnresponsiveException not thrown"); in testExecuteShellCommand_recoveryAttempts() 892 fail("DeviceNotAvailableException not thrown"); in testRunInstrumentationTests_recoveryFails() 925 fail("UnsupportedOperationException not thrown"); in testExecuteFastbootCommand_nofastboot() 938 fail("UnsupportedOperationException not thrown"); in testExecuteLongFastbootCommand_nofastboot() 1047 fail("encryptUserData() did not throw UnsupportedOperationException"); in testEncryptionUnsupported() 1053 fail("decryptUserData() did not throw UnsupportedOperationException"); in testEncryptionUnsupported() [all …]
|
/tools/test/connectivity/acts/framework/tests/config/ |
D | entries_test.py | 30 self.fail('Entry %s has an invalid cli_flags argument. This ' 34 self.fail('Entry %s has an invalid cli_flags argument. ' 42 self.fail('Entry %s must define the help kwarg.' % entry) 48 self.fail('Entry %s defines env_var_name %s, but does not ' 65 self.fail('The following acts_config_keys are used at least '
|
/tools/test/connectivity/acts/framework/tests/libs/ |
D | version_selector_test.py | 130 self.fail('Placing the @staticmethod decorator after the ' 143 self.fail('Placing the @classmethod decorator after the ' 158 self.fail('Overwriting a function that already exists without a ' 175 self.fail('Using two different versioning decorators to version a ' 191 self.fail('Decorated functions with overlapping version ranges ' 203 self.fail('If the min_version level is higher than the max_version '
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | GceAvdInfoTest.java | 22 import static org.junit.Assert.fail; 170 fail("A TargetSetupError should have been thrown."); in testMultipleGceJsonParsing() 181 fail("A TargetSetupError should have been thrown."); in testInvalidJsonParsing() 201 fail("A TargetSetupError should have been thrown."); in testMissingGceJsonParsing() 254 fail("A TargetSetupError should have been thrown."); in testValidGceJsonParsingFailQuota() 304 fail("A TargetSetupError should have been thrown."); in testParseJson_fail_error()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandFileParserTest.java | 136 fail("ConfigurationException not thrown"); in testParseFile_endOnQuote() 150 fail("ConfigurationException not thrown"); in testRun_endWithEscape() 213 fail("ConfigurationException not thrown"); in testUndefinedMacro() 227 fail("ConfigurationException not thrown"); in testUndefinedMacro_defSyntaxError() 297 fail("ConfigurationException not thrown"); in testLongMacroSyntaxError_eof() 470 fail(String.format("Received unexpected request for contents of file %s", in testMacroParserInclude_parentDir() 505 fail(String.format("Received unexpected request for contents of file %s", in testMacroParserInclude_absoluteInclude() 536 fail(String.format("Received unexpected request for contents of file %s", in testMacroParserInclude_noParentDir()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkSignerTest.java | 20 import static org.junit.Assert.fail; 622 fail(); in testV1SigningRejectsInvalidZipEntryNames() 628 fail(); in testV1SigningRejectsInvalidZipEntryNames() 634 fail(); in testV1SigningRejectsInvalidZipEntryNames() 672 fail(); in testDebuggableApk() 686 fail(); in testDebuggableApk() 725 fail("The signing should have failed due to the oldest signer in the lineage not being" in testSigningWithLineageRequiresOldestSignerForV1AndV2() 736 fail("The signing should have failed due to the oldest signer in the lineage not being" in testSigningWithLineageRequiresOldestSignerForV1AndV2() 757 fail("The signing should have failed due to the oldest signer in the lineage not being" in testSigningWithLineageRequiresOldestSignerForV1AndV2() 856 fail(tmp + " differs from " + expectedOutResourceName); in assertGolden() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/net/ |
D | HttpHelperTest.java | 21 import static org.junit.Assert.fail; 123 fail("DataSizeException not thrown"); in testDoGet_datasize() 163 fail("DataSizeException not thrown"); in testDoGetWithRetry_datasize() 185 fail("IOException not thrown"); in testDoGetWithRetry_ioexception() 247 fail("DataSizeException not thrown"); in testDoPostWithRetry_datasize() 270 fail("IOException not thrown"); in testDoPostWithRetry_ioexception()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | AppSetupTest.java | 19 import static org.junit.Assert.fail; 86 fail("Should have thrown an exception."); in testSetup_notIAppBuildInfo() 108 fail("Should have thrown an exception."); in testSetup_failToInstall() 133 fail("Should have thrown an exception."); in testSetup_aaptCannotParse() 165 fail("Should have thrown an exception."); in testSetup_noPackageName() 197 fail("Should have thrown an exception."); in testSetup_checkMinSdk_failParsing() 339 fail("Should have thrown an exception."); in testSetup_uninstallAll_fails()
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/ |
D | ota_runner_test.py | 94 self.fail('Matching build fingerprints did not throw an error!') 141 self.fail('SingleUseOtaRunner threw an exception on the first ' 152 self.fail('SingleUseOtaRunner did not throw an exception on the second' 190 self.fail('MultiUseOtaRunner threw an exception on the first ' 202 self.fail('MultiUseOtaRunner threw an exception before ' 216 self.fail('MultiUseOtaRunner did not throw an exception after running '
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | AvrcpBaseTest.py | 71 asserts.fail('Not able to connect to hands-free device') 104 asserts.fail('{} Event Not received'.format(EVENT_PLAY_RECEIVED)) 113 asserts.fail('{} Event Not received'.format(EVENT_PAUSE_RECEIVED)) 122 asserts.fail('{} Event Not ' 132 asserts.fail('{} Event Not '
|