Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 23 of 23) sorted by relevance

/test/vts/tools/vts-core-tradefed/tests/src/com/android/testtype/suite/module/
DKernelTestModuleControllerTest.java63 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice).times(2); in testModuleAbiMatchesArch()
64 EasyMock.expect(mMockDevice.getProperty(mLowMemProp)).andReturn("false"); in testModuleAbiMatchesArch()
65 EasyMock.expect(mMockDevice.getProperty(mProductNameProp)).andReturn("product"); in testModuleAbiMatchesArch()
76 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice).times(2); in testModuleAbiMismatchesArch()
77 EasyMock.expect(mMockDevice.getProperty(mLowMemProp)).andReturn("false"); in testModuleAbiMismatchesArch()
78 EasyMock.expect(mMockDevice.getProperty(mProductNameProp)).andReturn("product"); in testModuleAbiMismatchesArch()
89 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice).times(2); in testDeviceWithLowMemAndIsLowMemFlagTrue()
90 EasyMock.expect(mMockDevice.getProperty(mLowMemProp)).andReturn("true"); in testDeviceWithLowMemAndIsLowMemFlagTrue()
91 EasyMock.expect(mMockDevice.getProperty(mProductNameProp)).andReturn("product"); in testDeviceWithLowMemAndIsLowMemFlagTrue()
104 EasyMock.expect(mMockDevice.getIDevice()).andReturn(mMockIDevice).times(2); in testDeviceWithLowMemButIsLowMemFalse()
[all …]
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/testtype/
DVtsMultiDeviceTestTest.java133 EasyMock.expect(buildInfo.getBuildId()).andReturn("BUILD_ID").anyTimes(); in createMockBuildInfo()
134 EasyMock.expect(buildInfo.getBuildTargetName()).andReturn("BUILD_TARGET_NAME").anyTimes(); in createMockBuildInfo()
135 EasyMock.expect(buildInfo.getTestTag()).andReturn("TEST_TAG").anyTimes(); in createMockBuildInfo()
136 EasyMock.expect(buildInfo.getDeviceSerial()).andReturn("1234567890ABCXYZ").anyTimes(); in createMockBuildInfo()
137 EasyMock.expect(buildInfo.getRootDir()).andReturn(new File("DIR_NOT_EXIST")).anyTimes(); in createMockBuildInfo()
138 EasyMock.expect(buildInfo.getBuildAttributes()).andReturn(buildAttributes).anyTimes(); in createMockBuildInfo()
139 EasyMock.expect(buildInfo.getFile(EasyMock.eq("PYTHONPATH"))) in createMockBuildInfo()
142 EasyMock.expect(buildInfo.getFile(EasyMock.eq("VIRTUALENVPATH"))) in createMockBuildInfo()
155 EasyMock.expect(mDevice.getSerialNumber()).andReturn("1234567890ABCXYZ").anyTimes(); in createMockDevice()
156 EasyMock.expect(mDevice.getBuildAlias()).andReturn("BUILD_ALIAS").anyTimes(); in createMockDevice()
[all …]
DVtsFuzzTestTest.java49 EasyMock.expect(mMockITestDevice.getSerialNumber()).andStubReturn("serial"); in setUp()
80 EasyMock.expect(mMockITestDevice.doesFileExist(fuzzerBinaryPath)).andReturn(true); in testRunNormalInput()
106 EasyMock.expect(mMockITestDevice.doesFileExist(fuzzerBinaryPath)).andReturn(true); in testRunAbnormalInput()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DMediaPreparerTest.java64 EasyMock.expect(mMockDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE)).andReturn( in testSetMountPoint()
75 EasyMock.expect(mMockDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE)).andReturn( in testDefaultModuleDirMountPoint()
87 EasyMock.expect(mMockDevice.getMountPoint(IDevice.MNT_EXTERNAL_STORAGE)).andReturn( in testSetModuleDirMountPoint()
112 EasyMock.expect(mMockDevice.doesFileExist(shortFile)).andReturn(true).once(); in testCopyMediaFiles()
113 EasyMock.expect(mMockDevice.doesFileExist(fullFile)).andReturn(true).once(); in testCopyMediaFiles()
115 EasyMock.expect(mMockDevice.doesFileExist(mMediaPreparer.mBaseDeviceImagesDir)) in testCopyMediaFiles()
117 EasyMock.expect(mMockDevice.doesFileExist(mMediaPreparer.mBaseDeviceModuleDir)) in testCopyMediaFiles()
135 EasyMock.expect(mMockDevice.doesFileExist(shortFile)).andReturn(true).anyTimes(); in testMediaFilesExistOnDeviceTrue()
136 EasyMock.expect(mMockDevice.doesFileExist(fullFile)).andReturn(true).anyTimes(); in testMediaFilesExistOnDeviceTrue()
138 EasyMock.expect(mMockDevice.doesFileExist(mMediaPreparer.mBaseDeviceImagesDir)) in testMediaFilesExistOnDeviceTrue()
[all …]
DSettingsPreparerTest.java52 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andReturn(null).anyTimes(); in setUp()
64 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once(); in testCorrectOneExpected()
71 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once(); in testCorrectManyExpected()
81 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectOneExpected()
93 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectManyExpected()
108 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n"); in testCommandRun()
115 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_8)).andReturn("\n"); in testCommandRunWrongSetValue()
128 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once(); in testIncorrectOneExpectedCommandRun()
129 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n"); in testIncorrectOneExpectedCommandRun()
DDeviceInteractionHelperInstallerTest.java59 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andStubReturn(null); in setUp()
60 EasyMock.expect(mMockDevice.getSerialNumber()).andStubReturn("SERIAL"); in setUp()
72 EasyMock.expect(mMockDevice.isAppEnumerationSupported()).andReturn(true); in expectHelperInstall()
73 EasyMock.expect( in expectHelperInstall()
80 EasyMock.expect(mMockDevice.getProperty("ro.vendor.cts_interaction_helper_packages")) in expectDeviceProperty()
221 EasyMock.expect(mMockDevice.getProperty("ro.other_property")) in testDevicePropertyOptionOverridesDefault()
379 EasyMock.expect(mMockDevice.isAppEnumerationSupported()).andReturn(true); in testFailedInstallAborts()
380 EasyMock.expect( in testFailedInstallAborts()
DDeviceInfoCollectorTest.java72 EasyMock.expect(mDevice.getProperty(EasyMock.anyObject())).andStubReturn("value"); in pullDeviceInfo_fail()
73 EasyMock.expect( in pullDeviceInfo_fail()
94 EasyMock.expect(mDevice.getProperty(EasyMock.anyObject())).andStubReturn("value"); in pullDeviceInfo()
95 EasyMock.expect( in pullDeviceInfo()
DPropertyCheckTest.java51 EasyMock.expect(mMockDevice.getProperty(PROPERTY)).andReturn(ACTUAL_VALUE).anyTimes(); in setUp()
52 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andReturn(null).anyTimes(); in setUp()
DDynamicConfigPusherTest.java72 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andStubReturn(null); in setUp()
267 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(attributes); in testSetUp()
269 EasyMock.expect(mMockBuildInfo.getFiles()).andStubReturn(versionedFiles); in testSetUp()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/build/
DCompatibilityBuildProviderTest.java100 EasyMock.expect(mMockDevice.getBuildId()).andReturn("8888"); in testBaseGetBuild_withDevice()
101 EasyMock.expect(mMockDevice.getBuildFlavor()).andReturn("flavor"); in testBaseGetBuild_withDevice()
102 EasyMock.expect(mMockDevice.getBuildAlias()).andReturn("alias"); in testBaseGetBuild_withDevice()
103 EasyMock.expect(mMockDevice.getProperty("ro.product.name")).andReturn("product"); in testBaseGetBuild_withDevice()
104 EasyMock.expect(mMockDevice.getProperty("ro.build.type")).andReturn("userdebug"); in testBaseGetBuild_withDevice()
125 EasyMock.expect(mMockDevice.getBuildId()).andReturn("8888"); in testBaseGetBuild_withDeviceAndBuildFlavorPrefix()
126 EasyMock.expect(mMockDevice.getBuildFlavor()).andReturn("flavor"); in testBaseGetBuild_withDeviceAndBuildFlavorPrefix()
127 EasyMock.expect(mMockDevice.getBuildAlias()).andReturn("alias"); in testBaseGetBuild_withDeviceAndBuildFlavorPrefix()
128 EasyMock.expect(mMockDevice.getProperty("ro.product.name")).andReturn("product"); in testBaseGetBuild_withDeviceAndBuildFlavorPrefix()
129 EasyMock.expect(mMockDevice.getProperty("ro.build.type")).andReturn("userdebug"); in testBaseGetBuild_withDeviceAndBuildFlavorPrefix()
[all …]
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/
DVtsTraceCollectPreparerTest.java110 EasyMock.expect(mMockDevice.pushFile(EasyMock.eq(testProfilerlib32), in testOnSetUp()
114 EasyMock.expect(mMockDevice.pushFile(EasyMock.eq(testProfilerlib64), in testOnSetUp()
118 EasyMock.expect(mMockDevice.pushFile(EasyMock.eq(testVtslib32), in testOnSetUp()
122 EasyMock.expect(mMockDevice.pushFile(EasyMock.eq(testVtslib64), in testOnSetUp()
126 EasyMock.expect(mMockDevice.pushFile(EasyMock.eq(testUnrelatedlib32), in testOnSetUp()
130 EasyMock.expect(mMockDevice.pushFile(EasyMock.eq(testUnrelatedlib64), in testOnSetUp()
134 EasyMock.expect(mMockDevice.pushFile(EasyMock.eq(new File(mTestDir, in testOnSetUp()
139 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.eq("getenforce"))) in testOnSetUp()
142 EasyMock.expect(mMockDevice.executeShellCommand( in testOnSetUp()
160 EasyMock.expect(mMockDevice.pushFile(EasyMock.anyObject(), EasyMock.anyObject())) in testOnSetUpPushFileException()
[all …]
DVtsPythonVirtualenvPreparerTest.java20 import static org.easymock.EasyMock.expect;
78 expect(mMockRunUtil.runTimedCmd(anyLong(), EasyMock.eq(mPreparer.getPipPath()), in testInstallDeps_reqFile_success()
103 expect(mMockRunUtil.runTimedCmd(anyLong(), EasyMock.eq(mPreparer.getPipPath()), in testInstallDeps_depModule_success()
131 expect(mMockRunUtil.runTimedCmd(anyLong(), EasyMock.eq(mPreparer.getPipPath()), in testInstallDeps_reqFile_failure()
160 expect(mMockRunUtil.runTimedCmd( in testInstallDeps_depModule_failure()
163 expect(mMockRunUtil.runTimedCmd(anyLong(), EasyMock.eq(mPreparer.getPipPath()), in testInstallDeps_depModule_failure()
168 expect(mMockRunUtil.runTimedCmd(anyLong(), EasyMock.eq(mPreparer.getPipPath()), in testInstallDeps_depModule_failure()
186 expect(mockRunUtil.runTimedCmd( in addDefaultModuleExpectations()
189 expect(mockRunUtil.runTimedCmd(anyLong(), EasyMock.eq(mPreparer.getPipPath()), in addDefaultModuleExpectations()
204 expect(mMockRunUtil.runTimedCmd(EasyMock.anyInt(), EasyMock.eq("virtualenv"), in test_initVirtualenv_creationSuccess()
[all …]
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/device/metric/
DVtsHalTraceCollectorTest.java77 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andReturn(mBuildAttributes); in testOnTestRunEnd()
80 EasyMock.expect(mMockContext.getDevices()).andReturn(mDevices); in testOnTestRunEnd()
81 EasyMock.expect(mMockContext.getBuildInfos()).andReturn(mBuildInfos); in testOnTestRunEnd()
83 EasyMock.expect(mMockDevice.executeShellCommand( in testOnTestRunEnd()
89 EasyMock.expect(mMockDevice.pullFile(EasyMock.eq(VTS_TMP_DIR + "test1.vts.trace"), in testOnTestRunEnd()
93 EasyMock.expect(mMockDevice.pullFile(EasyMock.eq(VTS_TMP_DIR + "test2.vts.trace"), in testOnTestRunEnd()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DCompatibilityTestTest.java72 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abilist"))) in testGetAbis()
91 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abilist"))) in testGetAbis_notSupported()
110 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abi"))) in testGetAbis_primaryAbiOnly()
130 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abi"))) in testGetAbis_primaryAbiOnly_NotSupported()
150 EasyMock.expect(mMockDevice.getProperty(EasyMock.eq("ro.product.cpu.abilist"))) in testGetAbis_skipCtsArchCheck()
229 EasyMock.expect(mMockDevice.getBugreport()).andReturn(res); in testRunPreModuleCheck_failure()
268 EasyMock.expect(mMockDevice.getBugreport()).andReturn(res); in testRunPostModuleCheck_failure()
293 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("FAKE_SERIAL").times(2); in testRun_noModules()
DModuleRepoTest.java151 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andReturn(mockBuildInfoMap).anyTimes(); in setUp()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java132 EasyMock.expect(mMockBuildInfo.getBuildAttributes()).andStubReturn(mAttributes); in setUp()
134 EasyMock.expect(mMockDevice.getSerialNumber()).andStubReturn("SERIAL"); in setUp()
135 EasyMock.expect(mMockBuildInfo.getDeviceSerial()).andStubReturn("SERIAL"); in setUp()
137 EasyMock.expect(mMockBuildInfo.getFiles()).andStubReturn(Collections.emptyList()); in setUp()
202 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")).andReturn(mAbi); in testSingleModuleRun()
236 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")).andReturn(mAbi); in testSingleModuleRun_checkMetadata()
305 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")).andReturn(mAbi); in testSingleModuleRun_incomplete()
334 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")).andReturn(mAbi); in testSingleModuleRun_completeAfterInternalRetry()
364 EasyMock.expect(mMockDevice.getProperty("ro.product.cpu.abilist")).andReturn(mAbi); in testSingleModuleRun_incomplete_rerun_incomplete()
371 EasyMock.expect(mMockDevice.getProperty("ro.build.fingerprint")).andReturn("fingerprint"); in testSingleModuleRun_incomplete_rerun_incomplete()
[all …]
/test/vts/tools/vts-core-tradefed/tests/src/com/android/compatibility/tradefed/util/
DTargetFileUtilsTest.java81 EasyMock.expect(mMockDevice.executeShellV2Command("find findPath -name \"namePattern\" " in testFindFile()
102 EasyMock.expect(mMockDevice.executeShellV2Command("find findPath -name \"namePattern\"")) in testFindFile_w_cmd_result_fail()
117 EasyMock.expect(mMockDevice.executeShellV2Command("find findPath -name \"namePattern\"")) in testFindFile_w_empty_line_stdout()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/suite/
DPreviousResultLoaderTest.java93 EasyMock.expect(mMockProvider.getBuild()).andReturn(createFakeBuild("", false)); in testReloadTests_failed()
120 EasyMock.expect(mMockProvider.getBuild()) in testReloadTests()
152 EasyMock.expect(mMockProvider.getBuild()) in testReloadTests_withMultiProto()
197 EasyMock.expect(mMockProvider.getBuild()) in testReloadTests_withRunHistory()
/test/mlts/benchmark/src/com/android/nn/crashtest/app/
DCrashTestStatus.java103 public boolean compareAndSetResult(TestResult expect, TestResult update) { in compareAndSetResult() argument
104 return mTestResult.compareAndSet(expect, update); in compareAndSetResult()
/test/vts/harnesses/tradefed/tests/src/com/android/compatibility/common/tradefed/util/
DVtsRetryFilterHelperTest.java81 EasyMock.expect(mockDevice.getProperty(VENDOR_FINGERPRINT_PROPERTY)) in createMockDevice()
83 EasyMock.expect(mockDevice.getSerialNumber()).andStubReturn("serial"); in createMockDevice()
/test/vti/test_serving/gae/frontend/e2e/src/
Dapp.e2e-spec.ts12 expect(page.getParagraphText()).toEqual('Welcome to frontend!');
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/util/
DVtsPythonRunnerHelperTest.java90 EasyMock.expect(runUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.anyObject(), in createMockRunUtil()
142 EasyMock.expect(runUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.anyObject(), in testProcessRunInterrupted()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/retry/
DRetryFactoryTestTest.java107 EasyMock.expect(mMockInfo.getRemoteFiles()).andStubReturn(null); in setUp()