OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:littlemock
(Results
1 - 20
of
20
) sorted by null
/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);
47
LittleMock
.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough)
49
LittleMock
.anyString(),
LittleMock
.anyString(),
LittleMock
.anyString());
50
LittleMock
.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough
[
all
...]
/external/littlemock/
README
1
This folder contains the
littlemock
library.
3
The latest version of
littlemock
can be found at this url:
4
http://code.google.com/p/
littlemock
Android.mk
24
LOCAL_MODULE :=
littlemock
/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);
/packages/apps/Camera2/tests/
Android.mk
9
LOCAL_STATIC_JAVA_LIBRARIES :=
littlemock
dexmaker
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DevicePolicyUtilsTest.java
29
import com.google.testing.
littlemock
.
LittleMock
;
34
import static com.google.testing.
littlemock
.
LittleMock
.mock;
35
import static com.google.testing.
littlemock
.
LittleMock
.doReturn;
36
import static com.google.testing.
littlemock
.
LittleMock
.anyInt;
102
.getBluetoothContactSharingDisabled(
LittleMock
.<UserHandle>anyObject());
/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
...]
CameraActivityTest.java
25
import static com.google.testing.
littlemock
.
LittleMock
.doReturn;
/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
...]
AppDataDirGuesserTest.java
17
package com.google.testing.
littlemock
;
/packages/apps/Bluetooth/tests/
Android.mk
9
LOCAL_STATIC_JAVA_LIBRARIES := com.android.emailcommon
littlemock
dexmaker
/external/littlemock/src/com/google/testing/littlemock/
ArgumentCaptor.java
17
package com.google.testing.
littlemock
;
28
public interface ArgumentCaptor<T extends Object> extends
LittleMock
.ArgumentMatcher {
Captor.java
17
package com.google.testing.
littlemock
;
32
* <p>Then when the {@link
LittleMock
#initMocks(Object)} method is called (which should be
Mock.java
17
package com.google.testing.
littlemock
;
32
* <p>You just have to make sure that {@link
LittleMock
#initMocks(Object)} is called from
Behaviour.java
17
package 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
...]
AppDataDirGuesser.java
17
package com.google.testing.
littlemock
;
/frameworks/base/tests/TtsTests/
Android.mk
23
LOCAL_STATIC_JAVA_LIBRARIES :=
littlemock
/frameworks/base/core/tests/coretests/src/android/widget/focus/
RequestFocusTest.java
19
import static com.google.testing.
littlemock
.
LittleMock
.inOrder;
20
import static com.google.testing.
littlemock
.
LittleMock
.mock;
34
import com.google.testing.
littlemock
.
LittleMock
.InOrder;
/frameworks/base/core/tests/coretests/
Android.mk
32
littlemock
\
Completed in 230 milliseconds