OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:LittleMock
(Results
1 - 6
of
6
) sorted by null
/external/littlemock/src/com/google/testing/littlemock/
LittleMock.java
17
package com.google.testing.
littlemock
;
112
public class
LittleMock
{
277
public static <T> T anyObject() { return
LittleMock
.<T>addMatcher(new MatchAnything(), null); }
318
return
LittleMock
.<T>addMatcher(new ArgumentMatcher() {
403
return (T)
LittleMock
.<Integer>addMatcher(this, 0);
406
return (T)
LittleMock
.<Float>addMatcher(this, 0f);
409
return (T)
LittleMock
.<Double>addMatcher(this, 0.0);
412
return (T)
LittleMock
.<Boolean>addMatcher(this, false);
415
return (T)
LittleMock
.<Short>addMatcher(this, (short) 0);
418
return (T)
LittleMock
.<Character>addMatcher(this, '\u0000')
[
all
...]
/frameworks/base/core/tests/coretests/src/android/net/
SSLSessionCacheTest.java
22
import com.google.testing.
littlemock
.
LittleMock
;
42
final SSLClientSessionCache mock =
LittleMock
.mock(SSLClientSessionCache.class);
48
LittleMock
.verify(mock).getSessionData(
LittleMock
.anyString(),
LittleMock
.anyInt());
53
LittleMock
.verifyNoMoreInteractions(mock);
60
new SSLSessionCache(
LittleMock
.mock(SSLClientSessionCache.class)),
105
return
LittleMock
.mock(SSLSessionContext.class);
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
TextToSpeechTests.java
25
import com.google.testing.
littlemock
.ArgumentCaptor;
26
import com.google.testing.
littlemock
.Behaviour;
27
import com.google.testing.
littlemock
.
LittleMock
;
43
IDelegate passThrough =
LittleMock
.mock(IDelegate.class);
67
IDelegate delegate =
LittleMock
.mock(IDelegate.class);
70
LittleMock
.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable(
72
LittleMock
.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage(
78
LittleMock
.verify(delegate,
LittleMock
.anyTimes()).onIsLanguageAvailable
[
all
...]
/packages/apps/Camera/tests/src/com/android/camera/activity/
CameraTestCase.java
37
import static com.google.testing.
littlemock
.
LittleMock
.mock;
38
import static com.google.testing.
littlemock
.
LittleMock
.doAnswer;
39
import static com.google.testing.
littlemock
.
LittleMock
.doReturn;
40
import static com.google.testing.
littlemock
.
LittleMock
.anyObject;
41
import com.google.testing.
littlemock
.AppDataDirGuesser;
42
import com.google.testing.
littlemock
.ArgumentCaptor
[
all
...]
/packages/apps/Camera2/tests_camera/src/com/android/camera/activity/
CameraTestCase.java
37
import static com.google.testing.
littlemock
.
LittleMock
.mock;
38
import static com.google.testing.
littlemock
.
LittleMock
.doAnswer;
39
import static com.google.testing.
littlemock
.
LittleMock
.doReturn;
40
import static com.google.testing.
littlemock
.
LittleMock
.anyObject;
41
import com.google.testing.
littlemock
.AppDataDirGuesser;
42
import com.google.testing.
littlemock
.ArgumentCaptor
[
all
...]
/external/littlemock/tests/com/google/testing/littlemock/
LittleMockTest.java
17
package com.google.testing.
littlemock
;
19
import static com.google.testing.
littlemock
.
LittleMock
.anyBoolean;
20
import static com.google.testing.
littlemock
.
LittleMock
.anyByte;
21
import static com.google.testing.
littlemock
.
LittleMock
.anyChar;
22
import static com.google.testing.
littlemock
.
LittleMock
.anyDouble;
23
import static com.google.testing.
littlemock
.LittleMock.anyFloat
[
all
...]
Completed in 309 milliseconds