/tools/asuite/aidegen/lib/ |
D | clion_project_file_gen_unittest.py | 106 expected = templates.CMAKELISTS_HEADER.replace( 109 expected = expected.replace( 111 expected = expected.replace( 114 self.assertEqual(content, expected) 132 expected = clion_project_file_gen._SET_C_COMPILER.format( 135 self.assertEqual(content, expected) 149 expected = '' 150 self.assertEqual(content, expected) 169 expected = header + ''.join(src_heads) + srcs + '\n' + tail 170 self.assertEqual(content, expected) [all …]
|
D | common_util_unittest.py | 67 expected = (unittest_constants.TEST_MODULE, os.path.join( 70 expected, common_util.get_related_paths( 74 self.assertEqual(expected, common_util.get_related_paths( 114 expected = (rel_path, abs_path) 116 self.assertEqual(expected, result) 122 expected = ('', '/a') 124 self.assertEqual(expected, result) 130 expected = ('b', '/a/b') 132 self.assertEqual(expected, result) 134 self.assertEqual(expected, result) [all …]
|
D | native_util_unittest.py | 73 expected = abs_path 75 self.assertEqual(result, expected) 78 self.assertEqual(result, expected) 80 expected = current_parent 82 self.assertEqual(result, expected) 84 expected = 'a/b' 86 self.assertEqual(result, expected) 99 expected = (parent, targets) 106 self.assertEqual(result, expected) 123 expected = (parent, result_targets) [all …]
|
D | project_info_unittest.py | 354 expected = set(project_info._CORE_MODULES) 355 expected.update({'sub_module', 'robo_module'}) 359 self.assertTrue(mock_get_dep_modules.called_with(expected)) 382 expected = { 392 self.assertEqual(proj.path_to_sources, expected) 395 expected = { 405 self.assertEqual(proj.path_to_sources, expected) 424 expected = { 434 self.assertDictEqual(proj.path_to_sources, expected) 453 expected = { [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | QuotationAwareTokenizerTest.java | 28 private static void verify(String input, String[] expected, String delimiter) in verify() argument 32 if (expected.length != observed.length) { in verify() 34 "but observed %s.", Arrays.toString(expected), Arrays.toString(observed))); in verify() 37 for (int i = 0; i < expected.length; ++i) { in verify() 41 i, expected[i], observed[i]), in verify() 42 expected[i], in verify() 47 private static void verify(String input, String[] expected) throws IllegalArgumentException { in verify() argument 48 verify(input, expected, " "); in verify() 56 String[] expected = new String[] {"one", "two", "three"}; in testTokenizeLine_simple() local 57 verify(input, expected); in testTokenizeLine_simple() [all …]
|
D | StringEscapeUtilsTest.java | 48 List<String> expected = new ArrayList<>(); in testParams_noQuotesNoSpaces() local 49 expected.add("foo"); in testParams_noQuotesNoSpaces() 50 expected.add("bar"); in testParams_noQuotesNoSpaces() 51 assertArrayEquals(expected.toArray(), in testParams_noQuotesNoSpaces() 52 StringEscapeUtils.paramsToArgs(expected).toArray()); in testParams_noQuotesNoSpaces() 61 List<String> expected = new ArrayList<>(); in testParams_noQuotesWithSpaces() local 62 expected.add("foo"); in testParams_noQuotesWithSpaces() 63 expected.add("bar bar"); in testParams_noQuotesWithSpaces() 65 StringEscapeUtils.paramsToArgs(expected).toArray()); in testParams_noQuotesWithSpaces() 73 List<String> expected = new ArrayList<>(); in testParams_plainQuotes() local [all …]
|
D | FixedByteArrayOutputStreamTest.java | 80 String expected = text.substring(1); in testBufferPlusOne() local 81 assertEquals(expected, writeTextIntoStreamAndReturn(text)); in testBufferPlusOne() 88 String expected = TEXT.substring(TEXT.length() - BUF_SIZE); in testBufferPlusPlus() local 89 assertEquals(expected, writeTextIntoStreamAndReturn(TEXT)); in testBufferPlusPlus() 102 String expected = full.substring(full.length() - BUF_SIZE); in testWriteWithWrap() local 104 assertEquals(expected, writeTextIntoStreamAndReturn(followup)); in testWriteWithWrap() 114 String expected = text.substring(offset); in testLessThanBufferWithOffset() local 119 assertEquals(expected, baos.toString()); in testLessThanBufferWithOffset() 132 String expected = full.substring(full.length() - BUF_SIZE); in testWriteWithOffsetAndWrap() local 138 assertEquals(expected, baos.toString()); in testWriteWithOffsetAndWrap()
|
D | AbiUtilsTest.java | 107 } catch (IllegalArgumentException expected) { in getArchForAbi_emptyNull() 108 Assert.assertEquals("Abi cannot be null or empty", expected.getMessage()); in getArchForAbi_emptyNull() 113 } catch (IllegalArgumentException expected) { in getArchForAbi_emptyNull() 114 Assert.assertEquals("Abi cannot be null or empty", expected.getMessage()); in getArchForAbi_emptyNull() 129 } catch (IllegalArgumentException expected) { in getBaseArchForAbi_emptyNull() 130 Assert.assertEquals("Abi cannot be null or empty", expected.getMessage()); in getBaseArchForAbi_emptyNull() 135 } catch (IllegalArgumentException expected) { in getBaseArchForAbi_emptyNull() 136 Assert.assertEquals("Abi cannot be null or empty", expected.getMessage()); in getBaseArchForAbi_emptyNull()
|
/tools/test/connectivity/acts/framework/tests/libs/logging/ |
D | log_stream_test.py | 218 expected = mock.MagicMock() 219 with self.patch('MovableFileHandler', return_value=expected): 223 self.assertEqual(log.handlers[1], expected) 231 expected = mock.MagicMock() 232 with self.patch('MovableRotatingFileHandler', return_value=expected): 236 self.assertEqual(log.handlers[1], expected) 242 expected = mock.MagicMock() 244 with self.patch('MovableRotatingFileHandler', return_value=expected): 249 self.assertEqual(expected, fh, 257 expected = mock.MagicMock() [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZipField.java | 77 private final Long expected; field in ZipField 100 expected = null; in ZipField() 112 ZipField(int offset, int size, long expected, @Nonnull String name) { in ZipField() argument 119 this.expected = expected; in ZipField() 205 Preconditions.checkState(expected != null, "expected == null"); in verify() 206 verify(bytes, expected, verifyLog); in verify() 218 void verify(@Nonnull ByteBuffer bytes, long expected) throws IOException { in verify() argument 219 verify(bytes, expected, null); in verify() 235 long expected, in verify() argument 237 checkVerifiesInvariants(expected); in verify() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationFactoryTest.java | 532 } catch (ConfigurationException expected) { in testCreateConfigurationFromArgs_repeatedTemplate() 536 expected.getMessage()); in testCreateConfigurationFromArgs_repeatedTemplate() 554 } catch (ConfigurationException expected) { in testCreateConfigurationFromArgs_templateInclude_multiKey() 557 "More than one template specified for key 'target'", expected.getMessage()); in testCreateConfigurationFromArgs_templateInclude_multiKey() 914 Map<String, String> expected = new HashMap<String,String>(); in testCreateConfigurationFromArgs_templateName_notExist() local 915 expected.put(missingNameTemplate, targetName); in testCreateConfigurationFromArgs_templateName_notExist() 917 "Unused template:map parameters: %s", expected); in testCreateConfigurationFromArgs_templateName_notExist() 1362 } catch (ConfigurationException expected) { in testCreateConfiguration_includeInDevice_inDevice() 1364 "<device> tag cannot be included inside another device", expected.getMessage()); in testCreateConfiguration_includeInDevice_inDevice() 1497 } catch (ConfigurationException expected) { in testCreateConfigurationFromArgs_dryRun_keystore() [all …]
|
D | ConfigurationXmlParserTest.java | 86 } catch (ConfigurationException expected) { in testParse_interleaved() 91 expected.getMessage()); in testParse_interleaved() 296 } catch (ConfigurationException expected) { in testParse_deviceTagNoName() 297 assertEquals(expectedException, expected.getMessage()); in testParse_deviceTagNoName() 351 } catch(ConfigurationException expected) { in testParse_deviceTagAndObjectOutside() 352 assertEquals(expectedException, expected.getMessage()); in testParse_deviceTagAndObjectOutside() 375 } catch(ConfigurationException expected) { in testParse_withDeviceTag() 398 } catch(ConfigurationException expected) { in testParse_withDeviceInvalidName() 399 assertEquals(expectedException, expected.getMessage()); in testParse_withDeviceInvalidName() 421 } catch(ConfigurationException expected) { in testParse_withDeviceReservedName() [all …]
|
D | DynamicRemoteFileResolverTest.java | 259 } catch (BuildRetrievalError expected) { in testResolve_remoteFileList_downloadError() 261 assertTrue(expected.getMessage().contains("retrieval error")); in testResolve_remoteFileList_downloadError() 603 IRemoteFileResolver expected = loader.load(NullFileResolver.PROTOCOL, ImmutableMap.of()); in resolverLoader_multipleCallsReturnTheSameResolver() local 607 assertThat(actual).isSameAs(expected); in resolverLoader_multipleCallsReturnTheSameResolver() 646 } catch (ResolverLoadingException expected) { in resolverLoader_throwsIfMissingMandatoryOption() 647 assertThat(expected) in resolverLoader_throwsIfMissingMandatoryOption() 677 } catch (ResolverLoadingException expected) { in resolverLoader_throwsForMapOption() 678 assertThat(expected) in resolverLoader_throwsForMapOption() 682 assertThat(expected).hasCauseThat().hasMessageThat().contains("not supported"); in resolverLoader_throwsForMapOption() 746 } catch (ResolverLoadingException expected) { in resolverLoader_throwsOnInitializationCycles() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ValidateSuiteConfigHelperTest.java | 66 } catch (RuntimeException expected) { in testNotRunningAsSuite_buildProvider() 67 assertTrue(expected.getMessage().contains(Configuration.BUILD_PROVIDER_TYPE_NAME)); in testNotRunningAsSuite_buildProvider() 86 } catch (RuntimeException expected) { in testNotRunningAsSuite_MultiDevice_buildProvider() 87 assertTrue(expected.getMessage().contains(Configuration.BUILD_PROVIDER_TYPE_NAME)); in testNotRunningAsSuite_MultiDevice_buildProvider() 120 } catch (RuntimeException expected) { in testNotRunningAsSuite_resultReporter() 121 assertTrue(expected.getMessage().contains(Configuration.RESULT_REPORTER_TYPE_NAME)); in testNotRunningAsSuite_resultReporter() 136 } catch (RuntimeException expected) { in testNotRunningAsSuite_multi_resultReporter() 137 assertTrue(expected.getMessage().contains(Configuration.RESULT_REPORTER_TYPE_NAME)); in testNotRunningAsSuite_multi_resultReporter() 160 } catch (RuntimeException expected) { in testMetricCollectors() 162 expected.getMessage() in testMetricCollectors() [all …]
|
D | SuiteModuleLoaderTest.java | 537 List<String> expected = in testFilterParameterized_WithModuleArg() local 539 assertTrue(stubTest.getExcludeAnnotations().containsAll(expected)); in testFilterParameterized_WithModuleArg() 655 } catch (ConfigurationException expected) { in testDedupMainlineParameters_WithSpaces() 657 assertTrue(expected.getMessage().contains("Illegal mainline module parameter:")); in testDedupMainlineParameters_WithSpaces() 672 } catch (ConfigurationException expected) { in testDedupMainlineParameters_WithInvalidExtension() 674 assertTrue(expected.getMessage().contains("Illegal mainline module parameter:")); in testDedupMainlineParameters_WithInvalidExtension() 689 } catch (ConfigurationException expected) { in testDedupMainlineParameters_WithInvalidFormat() 691 assertTrue(expected.getMessage().contains("Illegal mainline module parameter:")); in testDedupMainlineParameters_WithInvalidFormat() 705 } catch (ConfigurationException expected) { in testDedupMainlineParameters_WithDuplicatedMainlineModules() 707 assertTrue(expected.getMessage().contains("Illegal mainline module parameter:")); in testDedupMainlineParameters_WithDuplicatedMainlineModules() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/ |
D | bt_utils.py | 246 expected = WEARABLE_BT_PROTOCOLS 249 expected[device.dut_type][key] = profiles[key] 252 expected[device.dut_type]), 256 msg_fmt = self._get_formatted_output(expected[device.dut_type], 262 def _get_formatted_output(self, expected, actual): argument 279 for key in expected.keys(): 280 if expected[key] != actual[key]: 281 msg += mismatch_format.format(key, expected[key], actual[key]) 284 def _compare_profile(self, device, expected): argument 289 for key in expected.keys(): [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterDeviceMonitorTest.java | 134 Map<String, String> expected = new HashMap<>(); in testGetAdditionalHostInfo() local 135 expected.put(PRODCERTSTATUS_KEY, prodcertstatusOutput); in testGetAdditionalHostInfo() 136 expected.put(KRBSTATUS_KEY, krbstatusOutput); in testGetAdditionalHostInfo() 138 Assert.assertEquals(expected, mClusterDeviceMonitor.getAdditionalHostInfo()); in testGetAdditionalHostInfo() 145 Map<String, String> expected = new HashMap<>(); in testGetAdditionalHostInfo_noCommands() local 146 Assert.assertEquals(expected, mClusterDeviceMonitor.getAdditionalHostInfo()); in testGetAdditionalHostInfo_noCommands() 174 Map<String, String> expected = new HashMap<>(); in testGetAdditionalHostInfo_commandFailed() local 175 expected.put(PRODCERTSTATUS_KEY, prodcertstatusOutput); in testGetAdditionalHostInfo_commandFailed() 176 expected.put(KRBSTATUS_KEY, krbstatusError); in testGetAdditionalHostInfo_commandFailed() 178 Assert.assertEquals(expected, mClusterDeviceMonitor.getAdditionalHostInfo()); in testGetAdditionalHostInfo_commandFailed()
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/ |
D | BerDataValueReaderTestBase.java | 97 @Test(expected = BerDataValueFormatException.class) 107 @Test(expected = BerDataValueFormatException.class) 134 @Test(expected = BerDataValueFormatException.class) 139 @Test(expected = BerDataValueFormatException.class) 144 @Test(expected = BerDataValueFormatException.class) 196 @Test(expected = BerDataValueFormatException.class) 201 @Test(expected = BerDataValueFormatException.class) 206 @Test(expected = BerDataValueFormatException.class) 211 @Test(expected = BerDataValueFormatException.class) 249 @Test(expected = BerDataValueFormatException.class)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | GceManagerTest.java | 172 List<String> expected = in testBuildGceCommand() local 187 assertEquals(expected, result); in testBuildGceCommand() 210 List<String> expected = in testBuildGceCommand_withServiceAccountJsonKeyFile() local 227 assertEquals(expected, result); in testBuildGceCommand_withServiceAccountJsonKeyFile() 259 List<String> expected = in testBuildGceCommandWithEmulatorBuild() local 276 assertEquals(expected, result); in testBuildGceCommandWithEmulatorBuild() 300 List<String> expected = in testBuildGceCommandWithGceDriverParam() local 317 assertEquals(expected, result); in testBuildGceCommandWithGceDriverParam() 364 } catch (TargetSetupError expected) { in testStartGce_timeout() 365 assertEquals(expectedException, expected.getMessage()); in testStartGce_timeout() [all …]
|
D | RemoteAndroidVirtualDeviceTest.java | 193 } catch (TargetSetupError expected) { in testExceptionFromParser() 194 assertEquals(expectedException, expected.getMessage()); in testExceptionFromParser() 224 } catch (DeviceNotAvailableException expected) { in testWaitForTunnelOnline_notOnline() 241 } catch (DeviceNotAvailableException expected) { in testWaitForTunnelOnline_tunnelTerminated() 245 expected.getMessage()); in testWaitForTunnelOnline_tunnelTerminated() 317 } catch (DeviceNotAvailableException expected) { in testPreInvocationSetup_fails() 388 } catch (TargetSetupError expected) { in testLaunchGce_bootFail() 442 } catch (TargetSetupError expected) { in testLaunchGce_nullPort() 444 expectedException = expected; in testLaunchGce_nullPort() 764 } catch (DeviceNotAvailableException expected) { in testDeviceBoot_offline() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | AppSetupTest.java | 117 } catch (BuildError expected) { in testSetup_failToInstall() 119 tmpFile.getName(), SERIAL), expected.getMessage()); in testSetup_failToInstall() 142 } catch (TargetSetupError expected) { in testSetup_aaptCannotParse() 147 expected.getMessage()); in testSetup_aaptCannotParse() 177 } catch (TargetSetupError expected) { in testSetup_noPackageName() 182 expected.getMessage()); in testSetup_noPackageName() 212 } catch (TargetSetupError expected) { in testSetup_checkMinSdk_failParsing() 215 expected.getMessage()); in testSetup_checkMinSdk_failParsing() 359 } catch (DeviceNotAvailableException expected) { in testSetup_uninstallAll_fails() 360 assertEquals("Failed to uninstall apps on " + SERIAL, expected.getMessage()); in testSetup_uninstallAll_fails()
|
/tools/asuite/atest/ |
D | cli_translator_unittest.py | 280 expected = set([TEST_1, TEST_2, TEST_5, TEST_7, TEST_9]) 281 expected_all_tests = {'presubmit': expected, 285 self.assertEqual(expected, tests) 298 expected = set([TEST_3, TEST_6, TEST_8, TEST_10]) 303 self.assertEqual(expected, tests) 315 expected = set([ 322 self.assertEqual(expected, tests) 332 expected = set([TEST_1, TEST_2, TEST_5, TEST_7, TEST_9]) 333 expected_all_tests = {'presubmit': expected, 337 self.assertEqual(expected, tests)
|
/tools/tradefederation/core/atest/ |
D | cli_translator_unittest.py | 279 expected = set([TEST_1, TEST_2, TEST_5, TEST_7, TEST_9]) 280 expected_all_tests = {'presubmit': expected, 284 self.assertEqual(expected, tests) 297 expected = set([TEST_3, TEST_6, TEST_8, TEST_10]) 302 self.assertEqual(expected, tests) 314 expected = set([ 321 self.assertEqual(expected, tests) 331 expected = set([TEST_1, TEST_2, TEST_5, TEST_7, TEST_9]) 332 expected_all_tests = {'presubmit': expected, 336 self.assertEqual(expected, tests)
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | SigningCertificateLineageTest.java | 124 @Test(expected = IllegalArgumentException.class) 130 @Test(expected = IllegalArgumentException.class) 231 @Test(expected = IllegalArgumentException.class) 286 @Test(expected = IllegalArgumentException.class) 349 @Test(expected = IllegalArgumentException.class) 375 @Test(expected = ApkFormatException.class) 397 } catch (IllegalArgumentException expected) {} in testLineageFromAPKWithNoLineageFails() 406 } catch (IllegalArgumentException expected) {} in testLineageFromAPKWithNoLineageFails() 416 } catch (IllegalArgumentException expected) {} in testLineageFromAPKWithNoLineageFails()
|
D | ApkSignerTest.java | 637 } catch (ApkFormatException expected) {} in testV1SigningRejectsInvalidZipEntryNames() 643 } catch (ApkFormatException expected) {} in testV1SigningRejectsInvalidZipEntryNames() 649 } catch (ApkFormatException expected) {} in testV1SigningRejectsInvalidZipEntryNames() 687 } catch (SignatureException expected) {} in testDebuggableApk() 701 } catch (SignatureException expected) {} in testDebuggableApk() 704 @Test(expected = IllegalStateException.class) 741 } catch (IllegalArgumentException expected) {} in testSigningWithLineageRequiresOldestSignerForV1AndV2() 752 } catch (IllegalArgumentException expected) {} in testSigningWithLineageRequiresOldestSignerForV1AndV2() 773 } catch (IllegalArgumentException expected) {} in testSigningWithLineageRequiresOldestSignerForV1AndV2() 785 @Test(expected = IllegalStateException.class)
|