/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/ |
D | DynamicConfigPusherTest.java | 59 private IBuildInfo mMockBuildInfo; field in DynamicConfigPusherTest 68 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 69 mMockBuildHelper = new CompatibilityBuildHelper(mMockBuildInfo); in setUp() 80 EasyMock.replay(mMockDevice, mMockBuildInfo); in testGetSuiteName_fromTestSuiteInfo() 82 EasyMock.verify(mMockDevice, mMockBuildInfo); in testGetSuiteName_fromTestSuiteInfo() 95 EasyMock.replay(mMockDevice, mMockBuildInfo); in testGetSuiteName_fromTestSuiteTag() 97 EasyMock.verify(mMockDevice, mMockBuildInfo); in testGetSuiteName_fromTestSuiteTag() 111 mMockBuildHelper = new CompatibilityBuildHelper(mMockBuildInfo) { in testLocalRead_fromDynamicConfigName() 118 EasyMock.replay(mMockDevice, mMockBuildInfo); in testLocalRead_fromDynamicConfigName() 121 EasyMock.verify(mMockDevice, mMockBuildInfo); in testLocalRead_fromDynamicConfigName() [all …]
|
D | SettingsPreparerTest.java | 35 private IBuildInfo mMockBuildInfo; field in SettingsPreparerTest 49 mMockBuildInfo = new BuildInfo("0", ""); in setUp() 59 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); in testCorrectOneExpected() 69 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); in testCorrectManyExpected() 77 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); in testIncorrectOneExpected() 92 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); in testIncorrectManyExpected() 103 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); in testCommandRun() 112 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); in testCommandRunWrongSetValue()
|
D | PropertyCheckTest.java | 32 private IDeviceBuildInfo mMockBuildInfo; field in PropertyCheckTest 45 mMockBuildInfo = new DeviceBuildInfo("0", ""); in setUp() 56 mPropertyCheck.run(mMockDevice, mMockBuildInfo); // no warnings or errors in testWarningMatch() 64 mPropertyCheck.run(mMockDevice, mMockBuildInfo); // should only print a warning in testWarningMismatch() 72 mPropertyCheck.run(mMockDevice, mMockBuildInfo); // no warnings or errors in testErrorMatch() 81 mPropertyCheck.run(mMockDevice, mMockBuildInfo); // expecting TargetSetupError in testErrorMismatch()
|
D | BusinessLogicPreparerTest.java | 56 private IBuildInfo mMockBuildInfo; field in BusinessLogicPreparerTest 134 mMockBuildInfo = new BuildInfo(); in setUp() 158 mMockBuildInfo.setFile(DeviceInfoCollector.DEVICE_INFO_DIR, jsonPath, "v1"); in testBuildRequestString_success() 160 mMockBuildInfo.addBuildAttribute(CompatibilityBuildHelper.SUITE_VERSION, "v1"); in testBuildRequestString_success() 174 mMockBuildInfo.addBuildAttribute(key, attributes.get(key)); in testBuildRequestString() 182 mMockBuildInfo.setFile(CONFIG_VERSION + "tests", configFile, CONFIG_VERSION + "tests"); in testBuildRequestString() 183 mMockBuildInfo.setFile(CONFIG_VERSION + "gts", configFile, CONFIG_VERSION + "gts"); in testBuildRequestString() 184 mMockBuildInfo.setFile(CONFIG_VERSION + "cts", configFile, CONFIG_VERSION + "cts"); in testBuildRequestString() 185 mMockBuildInfo.setFile(CONFIG_VERSION + "ats", configFile, CONFIG_VERSION + "ats"); in testBuildRequestString() 214 String[] params = mPreparer.buildRequestParams(mMockDevice, mMockBuildInfo).split("&"); in testBuildRequestString()
|
D | MediaPreparerTest.java | 42 private IBuildInfo mMockBuildInfo; field in MediaPreparerTest 50 mMockBuildInfo = new BuildInfo("0", ""); in setUp() 163 mMediaPreparer.setUp(mMockDevice, mMockBuildInfo); in testSkipMediaDownload() 197 mMediaPreparer.setUp(mMockDevice, mMockBuildInfo); in testWithBothPushAllAndImagesOnly() 230 mMediaPreparer.setUp(mMockDevice, mMockBuildInfo); in testMediaDownloadOnly_existsOnDevice()
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/ |
D | IntegrationTest.java | 88 private IBuildInfo mMockBuildInfo; field in IntegrationTest 110 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 111 mTest.setBuild(mMockBuildInfo); in setUp() 132 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(mAttributes); in setUp() 135 EasyMock.expect(mMockBuildInfo.getDeviceSerial()).andStubReturn("SERIAL"); in setUp() 137 EasyMock.expect(mMockBuildInfo.getFiles()).andStubReturn(Collections.emptyList()); in setUp() 141 mContext.addDeviceBuildInfo("default", mMockBuildInfo); in setUp() 204 mMockBuildInfo.addBuildAttribute(EasyMock.eq(CompatibilityBuildHelper.MODULE_IDS), in testSingleModuleRun() 208 EasyMock.replay(mMockDevice, mMockBuildInfo); in testSingleModuleRun() 212 EasyMock.verify(mMockDevice, mMockBuildInfo); in testSingleModuleRun() [all …]
|
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/ |
D | VtsTraceCollectPreparerTest.java | 62 private IBuildInfo mMockBuildInfo; field in VtsTraceCollectPreparerTest 70 mMockBuildInfo = EasyMock.createNiceMock(IBuildInfo.class); in setUp() 72 mMockHelper = new CompatibilityBuildHelper(mMockBuildInfo) { in setUp() 149 mMockBuildInfo.addBuildAttribute(TRACE_PATH, traceDir.getAbsolutePath()); in testOnSetUp() 151 EasyMock.replay(mMockDevice, mMockBuildInfo); in testOnSetUp() 154 mPreparer.setUp(mMockDevice, mMockBuildInfo); in testOnSetUp() 155 EasyMock.verify(mMockDevice, mMockBuildInfo); in testOnSetUp() 164 mPreparer.setUp(mMockDevice, mMockBuildInfo); in testOnSetUpPushFileException() 182 EasyMock.replay(mMockDevice, mMockBuildInfo); in testOnTearDown() 183 mPreparer.setUp(mMockDevice, mMockBuildInfo); in testOnTearDown() [all …]
|
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/device/metric/ |
D | VtsHalTraceCollectorTest.java | 51 private IBuildInfo mMockBuildInfo; field in VtsHalTraceCollectorTest 59 mMockBuildInfo = EasyMock.createNiceMock(IBuildInfo.class); in setUp() 77 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andReturn(mBuildAttributes); in testOnTestRunEnd() 79 mBuildInfos.add(mMockBuildInfo); in testOnTestRunEnd() 98 EasyMock.replay(mMockBuildInfo); in testOnTestRunEnd() 105 EasyMock.verify(mMockBuildInfo); in testOnTestRunEnd()
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/ |
D | ModuleRepoTest.java | 133 private IBuildInfo mMockBuildInfo; field in ModuleRepoTest 139 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp() 151 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andReturn(mockBuildInfoMap).anyTimes(); in setUp() 152 EasyMock.replay(mMockBuildInfo); in setUp() 193 EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); in testInitialization() 208 EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); in testGetModules() 219 INCLUDES, EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); in testGetModulesSharded() 241 includes, EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); in testGetModules_onlyTokenModules() 263 includes, EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); in testGetModules_TokenModules_multiDevices() 286 INCLUDES, EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); in testGetModulesSharded_uneven() [all …]
|