Home
last modified time | relevance | path

Searched refs:mMockBuildInfo (Results 1 – 10 of 10) sorted by relevance

/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DDynamicConfigPusherTest.java60 private IBuildInfo mMockBuildInfo; field in DynamicConfigPusherTest
70 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); in setUp()
71 mMockBuildHelper = new CompatibilityBuildHelper(mMockBuildInfo); in setUp()
73 mModuleContext.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
85 EasyMock.replay(mMockDevice, mMockBuildInfo); in testGetSuiteName_fromTestSuiteInfo()
87 EasyMock.verify(mMockDevice, mMockBuildInfo); in testGetSuiteName_fromTestSuiteInfo()
100 EasyMock.replay(mMockDevice, mMockBuildInfo); in testGetSuiteName_fromTestSuiteTag()
102 EasyMock.verify(mMockDevice, mMockBuildInfo); in testGetSuiteName_fromTestSuiteTag()
116 mMockBuildHelper = new CompatibilityBuildHelper(mMockBuildInfo) { in testLocalRead_fromDynamicConfigName()
123 EasyMock.replay(mMockDevice, mMockBuildInfo); in testLocalRead_fromDynamicConfigName()
[all …]
DBusinessLogicPreparerTest.java56 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()
177 mMockBuildInfo.setFile(DeviceInfoCollector.DEVICE_INFO_DIR, jsonPath, "v1"); in testBuildRequestString_noDeviceInfoJSONFileExists()
179 mMockBuildInfo.addBuildAttribute(CompatibilityBuildHelper.SUITE_VERSION, "v1"); in testBuildRequestString_noDeviceInfoJSONFileExists()
185 mMockBuildInfo.addBuildAttribute(key, attributes.get(key)); in testBuildRequestString()
193 mMockBuildInfo.setFile(CONFIG_VERSION + "tests", configFile, CONFIG_VERSION + "tests"); in testBuildRequestString()
194 mMockBuildInfo.setFile(CONFIG_VERSION + "gts", configFile, CONFIG_VERSION + "gts"); in testBuildRequestString()
195 mMockBuildInfo.setFile(CONFIG_VERSION + "cts", configFile, CONFIG_VERSION + "cts"); in testBuildRequestString()
[all …]
DVtsDeviceInfoCollectorTest.java56 @Mock private IBuildInfo mMockBuildInfo; field in VtsDeviceInfoCollectorTest
79 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
90 Mockito.verify(mMockBuildInfo) in testVendorProperties()
92 Mockito.verify(mMockBuildInfo) in testVendorProperties()
114 Mockito.verify(mMockBuildInfo).addBuildAttribute("cts:build_fingerprint", ODM_FINGERPRINT); in testOdmProperties()
115 Mockito.verify(mMockBuildInfo) in testOdmProperties()
DPropertyCheckTest.java35 private IDeviceBuildInfo mMockBuildInfo; field in PropertyCheckTest
49 mMockBuildInfo = new DeviceBuildInfo("0", ""); in setUp()
55 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
DSettingsPreparerTest.java38 private IBuildInfo mMockBuildInfo; field in SettingsPreparerTest
53 mMockBuildInfo = new BuildInfo("0", ""); in setUp()
59 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
DMediaPreparerTest.java45 private IBuildInfo mMockBuildInfo; field in MediaPreparerTest
54 mMockBuildInfo = new BuildInfo("0", ""); in setUp()
57 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java88 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/
DVtsTraceCollectPreparerTest.java62 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/
DVtsHalTraceCollectorTest.java51 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/
DModuleRepoTest.java133 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 …]