OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:andStubReturn
(Results
1 - 25
of
74
) sorted by null
1
2
3
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
MockFileUtil.java
41
EasyMock.expect(mockDevice.getFileEntry(rootPath)).
andStubReturn
(rootEntry);
43
EasyMock.expect(rootEntry.isDirectory()).
andStubReturn
(isDir);
44
EasyMock.expect(rootEntry.getFullEscapedPath()).
andStubReturn
(rootPath);
45
EasyMock.expect(rootEntry.getName()).
andStubReturn
(rootPath);
49
EasyMock.expect(childMockEntry.getName()).
andStubReturn
(childName);
51
EasyMock.expect(childMockEntry.getFullEscapedPath()).
andStubReturn
(fullPath);
52
EasyMock.expect(childMockEntry.isDirectory()).
andStubReturn
(Boolean.FALSE);
57
.
andStubReturn
(mockChildren);
73
EasyMock.expect(mockDevice.getFileEntry(rootPath)).
andStubReturn
(rootEntry);
74
EasyMock.expect(rootEntry.getFullEscapedPath()).
andStubReturn
(rootPath)
[
all
...]
ReconnectingRecoveryTest.java
47
EasyMock.expect(mMockMonitor.getSerialNumber()).
andStubReturn
(SERIAL);
90
EasyMock.expect(mMockMonitor.waitForDeviceOnline()).
andStubReturn
(null);
92
.
andStubReturn
(null);
107
.
andStubReturn
(null);
109
.
andStubReturn
(null);
DeviceSelectionOptionsTest.java
71
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
(DEVICE_SERIAL);
72
EasyMock.expect(mMockDevice.isEmulator()).
andStubReturn
(Boolean.FALSE);
74
EasyMock.expect(mMockEmulatorDevice.getSerialNumber()).
andStubReturn
("emulator");
75
EasyMock.expect(mMockEmulatorDevice.isEmulator()).
andStubReturn
(Boolean.TRUE);
443
.
andStubReturn
("10");
456
.
andStubReturn
("10");
469
.
andStubReturn
("blargh");
482
.
andStubReturn
("25");
495
.
andStubReturn
("10");
508
.
andStubReturn
("blargh")
[
all
...]
DeviceUtilStatsMonitorLoadTest.java
71
EasyMock.expect(mMockDeviceManager.listAllDevices()).
andStubReturn
(deviceList);
DeviceManagerTest.java
192
EasyMock.expect(mMockIDevice.getSerialNumber()).
andStubReturn
(DEVICE_SERIAL);
193
EasyMock.expect(mMockStateMonitor.getSerialNumber()).
andStubReturn
(DEVICE_SERIAL);
194
EasyMock.expect(mMockIDevice.isEmulator()).
andStubReturn
(Boolean.FALSE);
195
EasyMock.expect(mMockTestDevice.getMacAddress()).
andStubReturn
(MAC_ADDRESS);
196
EasyMock.expect(mMockTestDevice.getSimState()).
andStubReturn
(SIM_STATE);
197
EasyMock.expect(mMockTestDevice.getSimOperator()).
andStubReturn
(SIM_OPERATOR);
213
EasyMock.expect(mMockTestDevice.getMonitor()).
andStubReturn
(mMockStateMonitor);
216
(String) EasyMock.anyObject())).
andStubReturn
(new CommandResult());
219
(String) EasyMock.anyObject())).
andStubReturn
(new CommandResult());
221
EasyMock.expect(mMockGlobalConfig.getDeviceRequirements()).
andStubReturn
(
[
all
...]
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
BootstrapBuildProviderTest.java
47
EasyMock.expect(mMockDevice.getProperty(EasyMock.anyObject())).
andStubReturn
("property");
48
EasyMock.expect(mMockDevice.getProductVariant()).
andStubReturn
("variant");
49
EasyMock.expect(mMockDevice.getBuildFlavor()).
andStubReturn
("flavor");
50
EasyMock.expect(mMockDevice.getBuildAlias()).
andStubReturn
("alias");
72
EasyMock.expect(mMockDevice.getBuildFlavor()).
andStubReturn
("flavor");
73
EasyMock.expect(mMockDevice.getBuildAlias()).
andStubReturn
("alias");
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DeviceBatteryLevelCheckerTest.java
63
EasyMock.expect(mFakeTestDevice.getSerialNumber()).
andStubReturn
("SERIAL");
64
EasyMock.expect(mFakeTestDevice.getIDevice()).
andStubReturn
(mFakeDevice);
93
.
andStubReturn
("");
95
"settings put system screen_off_timeout 1000")).
andStubReturn
("");
109
.
andStubReturn
("");
111
"settings put system screen_off_timeout 1000")).
andStubReturn
("");
136
.
andStubReturn
("");
138
"settings put system screen_off_timeout 1000")).
andStubReturn
("");
NativeStressTestTest.java
62
EasyMock.expect(mMockStressFile.getName()).
andStubReturn
(RUN_NAME);
63
EasyMock.expect(mMockStressFile.getFullEscapedPath()).
andStubReturn
(RUN_NAME);
66
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
("serial");
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
TestInvocationMultiTest.java
109
EasyMock.expect(mDevice1.getIDevice()).
andStubReturn
(new StubDevice("serial1"));
110
EasyMock.expect(mDevice1.getSerialNumber()).
andStubReturn
("serial1");
115
EasyMock.expect(mMockConfig.getDeviceConfigByName("device1")).
andStubReturn
(holder1);
120
EasyMock.expect(mDevice2.getIDevice()).
andStubReturn
(new StubDevice("serial2"));
121
EasyMock.expect(mDevice2.getSerialNumber()).
andStubReturn
("serial2");
126
EasyMock.expect(mMockConfig.getDeviceConfigByName("device2")).
andStubReturn
(holder2);
156
EasyMock.expect(mMockConfig.getCommandLine()).
andStubReturn
("empty");
157
EasyMock.expect(mMockConfig.getCommandOptions()).
andStubReturn
(new CommandOptions());
158
EasyMock.expect(mMockConfig.getTests()).
andStubReturn
(new ArrayList<>());
202
EasyMock.expect(mMockConfig.getLogOutput()).
andStubReturn
(mMockLogger)
[
all
...]
/external/easymock/src/org/easymock/internal/
IMocksControlState.java
34
void
andStubReturn
(Object value);
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DefaultTestsZipInstallerTest.java
76
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
(TEST_STRING);
77
EasyMock.expect(mMockDevice.getProductType()).
andStubReturn
(TEST_STRING);
78
EasyMock.expect(mMockDevice.getBuildId()).
andStubReturn
("1");
80
EasyMock.expect(mMockDevice.getDeviceDescriptor()).
andStubReturn
(null);
104
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
("serial_number_stub");
135
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
("serial_number_stub");
179
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
("serial_number_stub");
190
EasyMock.expect(mMockDevice.doesFileExist("data/app")).
andStubReturn
(true);
192
.
andStubReturn
("oh noes, rm failed");
SystemUpdaterDeviceFlasherTest.java
54
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
(TEST_STRING);
55
EasyMock.expect(mMockDevice.getProductType()).
andStubReturn
(TEST_STRING);
56
EasyMock.expect(mMockDevice.getDeviceDescriptor()).
andStubReturn
(null);
KernelFlashPreparerTest.java
70
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
("serial");
71
EasyMock.expect(mMockDevice.getBuildId()).
andStubReturn
("0");
72
EasyMock.expect(mMockDevice.getDeviceDescriptor()).
andStubReturn
(null);
75
EasyMock.expect(mMockDeviceBuildInfo.getRamdiskFile()).
andStubReturn
(mRamdisk);
76
EasyMock.expect(mMockDeviceBuildInfo.getMkbootimgFile()).
andStubReturn
(mMkbootimg);
79
EasyMock.expect(mMockKernelBuildInfo.getKernelFile()).
andStubReturn
(mKernel);
80
EasyMock.expect(mMockKernelBuildInfo.getSha1()).
andStubReturn
("sha1");
AllTestAppsInstallSetupTest.java
34
EasyMock.expect(mMockTestDevice.getSerialNumber()).
andStubReturn
(SERIAL);
35
EasyMock.expect(mMockTestDevice.getDeviceDescriptor()).
andStubReturn
(null);
53
EasyMock.expect(mMockBuildInfo.getTestsDir()).
andStubReturn
(new File(""));
DeviceFlashPreparerTest.java
138
EasyMock.expect(mMockDevice.enableAdbRoot()).
andStubReturn
(Boolean.TRUE);
142
EasyMock.expect(mMockDevice.isEncryptionSupported()).
andStubReturn
(Boolean.TRUE);
143
EasyMock.expect(mMockDevice.isDeviceEncrypted()).
andStubReturn
(Boolean.FALSE);
174
EasyMock.expect(mMockDevice.enableAdbRoot()).
andStubReturn
(Boolean.TRUE);
178
EasyMock.expect(mMockDevice.isEncryptionSupported()).
andStubReturn
(Boolean.TRUE);
179
EasyMock.expect(mMockDevice.isDeviceEncrypted()).
andStubReturn
(Boolean.FALSE);
SdkAvdPreparerTest.java
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"));
76
EasyMock.expect(mMockDevice.getIDevice()).
andStubReturn
(mMockIDevice);
77
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
("serial");
78
EasyMock.expect(mMockDevice.getDeviceDescriptor()).
andStubReturn
(null);
TestAppInstallSetupTest.java
90
EasyMock.expect(mMockTestDevice.getSerialNumber()).
andStubReturn
(SERIAL);
91
EasyMock.expect(mMockTestDevice.getDeviceDescriptor()).
andStubReturn
(null);
258
EasyMock.expect(mMockTestDevice.getDeviceDescriptor()).
andStubReturn
(null);
259
EasyMock.expect(mMockBuildInfo.getTestsDir()).
andStubReturn
(mBuildTestDir);
289
EasyMock.expect(mMockTestDevice.getDeviceDescriptor()).
andStubReturn
(null);
290
EasyMock.expect(mMockBuildInfo.getTestsDir()).
andStubReturn
(mBuildTestDir);
FastbootDeviceFlasherTest.java
64
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
(TEST_STRING);
65
EasyMock.expect(mMockDevice.getProductType()).
andStubReturn
(TEST_STRING);
66
EasyMock.expect(mMockDevice.getBuildId()).
andStubReturn
("1");
67
EasyMock.expect(mMockDevice.getBuildFlavor()).
andStubReturn
("test-debug");
68
EasyMock.expect(mMockDevice.getDeviceDescriptor()).
andStubReturn
(null);
418
EasyMock.expect(mMockDevice.getDeviceDescriptor()).
andStubReturn
(null);
420
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
(TEST_STRING);
442
EasyMock.expect(mMockDevice.getDeviceDescriptor()).
andStubReturn
(null);
444
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
(TEST_STRING);
445
EasyMock.expect(mMockParser.getRequiredBoards()).
andStubReturn
(ArrayUtil.list(boardName))
[
all
...]
/external/easymock/src/org/easymock/
IExpectationSetters.java
74
void
andStubReturn
(T value);
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
CommandSchedulerStressApp.java
50
EasyMock.expect(mMockConfig.getCommandOptions()).
andStubReturn
(mCommandOptions);
51
EasyMock.expect(mMockConfig.getDeviceRequirements()).
andStubReturn
(
CommandSchedulerFuncTest.java
95
EasyMock.expect(mSlowConfig.getCommandOptions()).
andStubReturn
(mCommandOptions);
97
.
andStubReturn
(new ArrayList<ITestInvocationListener>());
98
EasyMock.expect(mFastConfig.getCommandOptions()).
andStubReturn
(mCommandOptions);
100
.
andStubReturn
(new ArrayList<ITestInvocationListener>());
101
EasyMock.expect(mSlowConfig.getDeviceRequirements()).
andStubReturn
(
103
EasyMock.expect(mFastConfig.getDeviceRequirements()).
andStubReturn
(
105
EasyMock.expect(mSlowConfig.getDeviceConfig()).
andStubReturn
(mMockDeviceConfig);
107
.
andStubReturn
(mMockConfig);
108
EasyMock.expect(mSlowConfig.getCommandLine()).
andStubReturn
("");
110
.
andStubReturn
(mMockConfig)
[
all
...]
/external/guice/extensions/servlet/test/com/google/inject/servlet/
ContinuingHttpServletRequestTest.java
37
expect(delegate.getCookies()).
andStubReturn
(null);
52
expect(delegate.getCookies()).
andStubReturn
(cookies);
/external/guava/guava-tests/test/com/google/common/util/concurrent/
ForwardingObjectTester.java
68
EasyMock.expectLastCall().
andStubReturn
(delegate);
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
ModuleDefinitionTest.java
222
EasyMock.expect(mMockCleaner.isDisabled()).
andStubReturn
(false);
227
EasyMock.expect(mMockCleaner.isTearDownDisabled()).
andStubReturn
(false);
248
EasyMock.expect(mMockCleaner.isDisabled()).
andStubReturn
(true);
271
EasyMock.expect(mMockCleaner.isDisabled()).
andStubReturn
(false);
276
EasyMock.expect(mMockCleaner.isTearDownDisabled()).
andStubReturn
(true);
347
EasyMock.expect(mMockCleaner.isDisabled()).
andStubReturn
(false);
349
EasyMock.expect(mMockCleaner.isTearDownDisabled()).
andStubReturn
(false);
391
EasyMock.expect(mMockCleaner.isDisabled()).
andStubReturn
(false);
393
EasyMock.expect(mMockCleaner.isTearDownDisabled()).
andStubReturn
(false);
604
EasyMock.expect(mMockCleaner.isDisabled()).
andStubReturn
(false)
[
all
...]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
AtraceCollectorTest.java
74
.
andStubReturn
(new File(M_TRACE_PATH_NAME));
75
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
(M_SERIAL_NO);
78
.
andStubReturn
(Arrays.asList(mMockDevice));
295
.
andStubReturn
(new File("/tmp/potato"));
296
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
(M_SERIAL_NO);
319
.
andStubReturn
(new File("/tmp/potato"));
320
EasyMock.expect(mMockDevice.getSerialNumber()).
andStubReturn
(M_SERIAL_NO);
347
EasyMock.expect(device.getSerialNumber()).
andStubReturn
(M_SERIAL_NO);
349
.
andStubReturn
(new File("/tmp/potato"));
356
.
andStubReturn
(devices)
[
all
...]
Completed in 445 milliseconds
1
2
3