/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
InstallAllTestZipAppsSetupTest.java | 45 private IBuildInfo mMockBuildInfo; 74 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); 103 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(file); 104 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 105 File ret = mPrep.getZipFile(mMockTestDevice, mMockBuildInfo); 107 EasyMock.verify(mMockBuildInfo); 114 EasyMock.expect(mMockBuildInfo.getFile(zip)).andReturn(null); 115 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 116 File ret = mPrep.getZipFile(mMockTestDevice, mMockBuildInfo); 118 EasyMock.verify(mMockBuildInfo); [all...] |
TestAppInstallSetupTest.java | 49 private IDeviceBuildInfo mMockBuildInfo; 88 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); 106 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 107 mPrep.setUp(mMockTestDevice, mMockBuildInfo); 108 EasyMock.verify(mMockBuildInfo, mMockTestDevice); 118 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 120 mPrep.setUp(mMockTestDevice, mMockBuildInfo); 129 EasyMock.verify(mMockBuildInfo, mMockTestDevice); 144 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 145 mPrep.setUp(mMockTestDevice, mMockBuildInfo); [all...] |
AllTestAppsInstallSetupTest.java | 22 private IDeviceBuildInfo mMockBuildInfo; 32 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); 53 EasyMock.expect(mMockBuildInfo.getTestsDir()).andStubReturn(new File("")); 54 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 56 mPrep.setUp(mMockTestDevice, mMockBuildInfo); 62 EasyMock.verify(mMockBuildInfo, mMockTestDevice); 67 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 74 EasyMock.verify(mMockBuildInfo, mMockTestDevice); 86 EasyMock.expect(mMockBuildInfo.getTestsDir()).andReturn(testDir); 89 EasyMock.replay(mMockBuildInfo, mMockTestDevice) [all...] |
InstallApkSetupTest.java | 44 private IDeviceBuildInfo mMockBuildInfo; 54 mMockBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); 79 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 80 mInstallApkSetup.setUp(mMockTestDevice, mMockBuildInfo); 81 EasyMock.verify(mMockBuildInfo, mMockTestDevice); 92 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 94 mInstallApkSetup.setUp(mMockTestDevice, mMockBuildInfo); 100 EasyMock.verify(mMockBuildInfo, mMockTestDevice); 116 EasyMock.replay(mMockBuildInfo, mMockTestDevice); 117 mInstallApkSetup.setUp(mMockTestDevice, mMockBuildInfo); [all...] |
RunCommandTargetPreparerTest.java | 48 private IBuildInfo mMockBuildInfo = null; 54 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); 68 EasyMock.replay(mMockDevice, mMockBuildInfo); 69 mPreparer.setUp(mMockDevice, mMockBuildInfo); 70 EasyMock.verify(mMockDevice, mMockBuildInfo); 90 EasyMock.replay(mMockDevice, mMockBuildInfo); 91 mPreparer.setUp(mMockDevice, mMockBuildInfo); 92 EasyMock.verify(mMockDevice, mMockBuildInfo); 106 EasyMock.replay(mMockDevice, mMockBuildInfo); 107 mPreparer.setUp(mMockDevice, mMockBuildInfo); [all...] |
DeviceSetupTest.java | 45 private IDeviceBuildInfo mMockBuildInfo; 61 mMockBuildInfo = new DeviceBuildInfo("0", ""); 84 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); 108 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); 122 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); 135 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); 148 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); 160 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); 172 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); 184 mDeviceSetup.setUp(mMockDevice, mMockBuildInfo); [all...] |
PreloadedClassesPreparerTest.java | 45 private IBuildInfo mMockBuildInfo; 56 mMockBuildInfo = Mockito.mock(IBuildInfo.class); 73 when(mMockBuildInfo.getFile(PRELOAD_TOOL_NAME)).thenReturn(tool); 82 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo); 90 when(mMockBuildInfo.getFile(PRELOAD_TOOL_NAME)).thenReturn(null); 92 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo); 110 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo); 116 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo); 131 mSpyPreparer.setUp(mMockDevice, mMockBuildInfo);
|
AppSetupTest.java | 56 private IAppBuildInfo mMockBuildInfo; 65 mMockBuildInfo = EasyMock.createMock(IAppBuildInfo.class); 70 EasyMock.replay(mMockDevice, mMockBuildInfo); 74 EasyMock.verify(mMockDevice, mMockBuildInfo); 103 EasyMock.expect(mMockBuildInfo.getAppPackageFiles()).andReturn(files); 107 mAppSetup.setUp(mMockDevice, mMockBuildInfo); 128 EasyMock.expect(mMockBuildInfo.getAppPackageFiles()).andReturn(files); 132 mAppSetup.setUp(mMockDevice, mMockBuildInfo); 159 EasyMock.expect(mMockBuildInfo.getAppPackageFiles()).andReturn(files); 164 mAppSetup.setUp(mMockDevice, mMockBuildInfo); [all...] |
DeviceSetupFuncTest.java | 40 private IDeviceBuildInfo mMockBuildInfo; 54 mMockBuildInfo = new DeviceBuildInfo("0", ""); 69 mDeviceSetup.setUp(getDevice(), mMockBuildInfo);
|
DeviceFlashPreparerTest.java | 57 private IDeviceBuildInfo mMockBuildInfo; 67 mMockBuildInfo = new DeviceBuildInfo("0", ""); 68 mMockBuildInfo.setDeviceImageFile(new File("foo"), "0"); 69 mMockBuildInfo.setBuildFlavor("flavor"); 105 mDeviceFlashPreparer.setUp(mMockDevice, mMockBuildInfo); 117 mMockFlasher.flash(mMockDevice, mMockBuildInfo); 122 EasyMock.expect(mMockDevice.getBuildId()).andReturn(mMockBuildInfo.getBuildId()); 123 EasyMock.expect(mMockDevice.getBuildFlavor()).andReturn(mMockBuildInfo.getBuildFlavor()); 153 mMockFlasher.flash(mMockDevice, mMockBuildInfo); 158 EasyMock.expect(mMockDevice.getBuildId()).andReturn(mMockBuildInfo.getBuildId()) [all...] |
SdkAvdPreparerTest.java | 49 private ISdkBuildInfo mMockBuildInfo; 68 mMockBuildInfo = EasyMock.createMock(ISdkBuildInfo.class); 73 EasyMock.expect(mMockBuildInfo.getAndroidToolPath()).andStubReturn(ANDROID_TOOL); 74 EasyMock.expect(mMockBuildInfo.getEmulatorToolPath()).andStubReturn(EMULATOR_TOOL); 75 EasyMock.expect(mMockBuildInfo.getSdkDir()).andStubReturn(new File("sdk")); 97 mPreparer.setUp(mMockDevice, mMockBuildInfo); 128 mPreparer.setUp(mMockDevice, mMockBuildInfo); 159 mPreparer.setUp(mMockDevice, mMockBuildInfo); 188 mPreparer.setUp(mMockDevice, mMockBuildInfo); 214 mPreparer.setUp(mMockDevice, mMockBuildInfo); [all...] |
InstrumentationPreparerTest.java | 41 private IDeviceBuildInfo mMockBuildInfo; 49 mMockBuildInfo = new DeviceBuildInfo("0",""); 79 mInstrumentationPreparer.setUp(mMockDevice, mMockBuildInfo); 107 mInstrumentationPreparer.setUp(mMockDevice, mMockBuildInfo);
|
FastbootDeviceFlasherTest.java | 51 private IDeviceBuildInfo mMockBuildInfo; 68 mMockBuildInfo = new DeviceBuildInfo("0", TEST_STRING); 69 mMockBuildInfo.setDeviceImageFile(new File(TEST_STRING), "0"); 70 mMockBuildInfo.setUserDataImageFile(new File(TEST_STRING), "0"); 102 mFlasher.flash(mMockDevice, mMockBuildInfo); 118 mFlasher.flash(mMockDevice, mMockBuildInfo); 249 mockZipInstaller.pushTestsZipOntoData(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo)); 256 mFlasher.flashUserData(mMockDevice, mMockBuildInfo); 385 mFlasher.handleUserDataFlashing(mMockDevice, mMockBuildInfo); 406 mFlasher.flashUserData(mMockDevice, mMockBuildInfo); [all...] |
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/ |
PropertyCheckTest.java | 32 private IDeviceBuildInfo mMockBuildInfo; 45 mMockBuildInfo = new DeviceBuildInfo("0", "", ""); 56 mPropertyCheck.run(mMockDevice, mMockBuildInfo); // no warnings or errors 64 mPropertyCheck.run(mMockDevice, mMockBuildInfo); // should only print a warning 72 mPropertyCheck.run(mMockDevice, mMockBuildInfo); // no warnings or errors 81 mPropertyCheck.run(mMockDevice, mMockBuildInfo); // expecting TargetSetupError
|
SettingsPreparerTest.java | 35 private IBuildInfo mMockBuildInfo; 49 mMockBuildInfo = new BuildInfo("0", "", ""); 59 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); 69 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); 77 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); 92 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); 103 mSettingsPreparer.run(mMockDevice, mMockBuildInfo); 112 mSettingsPreparer.run(mMockDevice, mMockBuildInfo);
|
MediaPreparerTest.java | 32 private IBuildInfo mMockBuildInfo; 41 mMockBuildInfo = new BuildInfo("0", ""); 98 mMediaPreparer.run(mMockDevice, mMockBuildInfo);
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
TfTestLauncherTest.java | 57 private IFolderBuildInfo mMockBuildInfo; 64 mMockBuildInfo = EasyMock.createMock(IFolderBuildInfo.class); 69 mTfTestLauncher.setBuild(mMockBuildInfo); 110 EasyMock.expect(mMockBuildInfo.getTestTag()).andReturn(TEST_TAG); 111 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andReturn(BUILD_BRANCH).times(2); 112 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andReturn(BUILD_FLAVOR).times(2); 114 EasyMock.expect(mMockBuildInfo.getRootDir()).andReturn(new File("")); 115 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn(BUILD_ID).times(3); 133 EasyMock.replay(mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); 135 EasyMock.verify(mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig) [all...] |
VersionedTfLauncherTest.java | 73 private IFolderBuildInfo mMockBuildInfo; 80 mMockBuildInfo = EasyMock.createMock(IFolderBuildInfo.class); 86 mVersionedTfLauncher.setBuild(mMockBuildInfo); 140 EasyMock.expect(mMockBuildInfo.getRootDir()).andReturn(new File("")); 141 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2); 142 EasyMock.expect(mMockBuildInfo.getFile("general-tests.zip")) 156 EasyMock.replay(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); 158 EasyMock.verify(mMockTestDevice, mMockBuildInfo, mMockRunUtil, mMockListener, mMockConfig); 196 EasyMock.expect(mMockBuildInfo.getRootDir()).andReturn(new File("")); 197 EasyMock.expect(mMockBuildInfo.getBuildId()).andReturn("FAKEID").times(2) [all...] |
DeviceSuiteTest.java | 50 private IBuildInfo mMockBuildInfo; 58 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); 61 mHostTest.setBuild(mMockBuildInfo); 147 assertEquals(mMockBuildInfo, Junit4DeviceTestclass.sBuildInfo);
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
SuiteApkInstallerTest.java | 43 private IBuildInfo mMockBuildInfo; 49 mMockBuildInfo = Mockito.mock(IBuildInfo.class); 66 doReturn(new HashMap<String, String>()).when(mMockBuildInfo).getBuildAttributes(); 68 mPreparer.getTestsDir(mMockBuildInfo); 92 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); 93 File res = mPreparer.getTestsDir(mMockBuildInfo); 118 mPreparer.getLocalPathForFilename(mMockBuildInfo, apk.getName(), mMockDevice); 119 verify(mMockBuildInfo, times(0)).getBuildAttributes(); 147 doReturn(attributes).when(mMockBuildInfo).getBuildAttributes(); 150 mMockBuildInfo, apkFile.getName(), mMockDevice) [all...] |
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/ |
IntegrationTest.java | 91 private IBuildInfo mMockBuildInfo; 113 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); 114 mTest.setBuild(mMockBuildInfo); 135 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(mAttributes); 138 EasyMock.expect(mMockBuildInfo.getDeviceSerial()).andStubReturn("SERIAL"); 140 EasyMock.expect(mMockBuildInfo.getFiles()).andStubReturn(Collections.emptyList()); 144 mContext.addDeviceBuildInfo("default", mMockBuildInfo); 207 mMockBuildInfo.addBuildAttribute(EasyMock.eq(CompatibilityBuildHelper.MODULE_IDS), 211 EasyMock.replay(mMockDevice, mMockBuildInfo); 215 EasyMock.verify(mMockDevice, mMockBuildInfo); [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
TestInvocationTest.java | 131 private IBuildInfo mMockBuildInfo; 158 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); 200 EasyMock.expect(mMockBuildInfo.getBuildId()).andStubReturn("1"); 201 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(EMPTY_MAP); 202 EasyMock.expect(mMockBuildInfo.getBuildBranch()).andStubReturn("branch"); 203 EasyMock.expect(mMockBuildInfo.getBuildFlavor()).andStubReturn("flavor"); 216 mMockBuildInfo); 303 BuildRetrievalError exception = new BuildRetrievalError("error", null, mMockBuildInfo); 305 EasyMock.expect(mMockBuildInfo.getTestTag()).andStubReturn(null); 321 mMockBuildProvider.cleanUp(mMockBuildInfo); [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
ModuleDefinitionTest.java | 62 private IBuildInfo mMockBuildInfo; 123 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); 174 mModule.setBuild(mMockBuildInfo); 176 mMockPrep.setUp(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo)); 177 mMockCleaner.setUp(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo)); 178 mMockTest.setBuild(EasyMock.eq(mMockBuildInfo)); 181 mMockCleaner.tearDown(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo), 212 mMockCleaner.tearDown(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo), 242 mModule.setBuild(mMockBuildInfo); 244 mMockPrep.setUp(EasyMock.eq(mMockDevice), EasyMock.eq(mMockBuildInfo)); [all...] |
ITestSuiteIntegrationTest.java | 85 private IBuildInfo mMockBuildInfo; 133 mMockBuildInfo = mock(IBuildInfo.class); 137 mContext.addDeviceBuildInfo("device", mMockBuildInfo); 197 suite.setBuild(mMockBuildInfo); 218 suite.setBuild(mMockBuildInfo); 242 suite.setBuild(mMockBuildInfo); 266 suite.setBuild(mMockBuildInfo); 383 mMockBuildInfo = new BuildInfo("9999", "test-target"); 386 mContext.addDeviceBuildInfo("device", mMockBuildInfo); 420 mMockBuildInfo = new BuildInfo("9999", "test-target") [all...] |
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/ |
ModuleRepoTest.java | 134 private IBuildInfo mMockBuildInfo; 140 mMockBuildInfo = EasyMock.createMock(IBuildInfo.class); 152 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andReturn(mockBuildInfoMap).anyTimes(); 153 EasyMock.replay(mMockBuildInfo); 194 EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); 209 EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); 220 INCLUDES, EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); 242 includes, EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); 264 includes, EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); 287 INCLUDES, EXCLUDES, METADATA_INCLUDES, METADATA_EXCLUDES, mMockBuildInfo); [all...] |