Home
last modified time | relevance | path

Searched refs:when (Results 1 – 25 of 5085) sorted by relevance

12345678910>>...204

/external/strace/tests/
Dqual_fault-syntax.test44 chdir:42:when=7 \
46 chdir:invalid:when=8 \
48 chdir:error=:when=10 \
50 chdir:error=invalid_error_name:when=11 \
52 chdir:error=-1:when=12 \
54 chdir:error=-2:when=13 \
56 chdir:error=3+:when=14 \
58 chdir:error=4096:when=15 \
59 chdir:when=7:error=invalid_error_name \
60 chdir:when= \
[all …]
Dqual_inject-syntax.test45 chdir:42:when=7 \
47 chdir:invalid:when=8 \
49 chdir:error=:when=10 \
51 chdir:error=invalid_error_name:when=11 \
53 chdir:error=-1:when=12 \
55 chdir:error=-2:when=13 \
57 chdir:error=3+:when=14 \
59 chdir:error=4096:when=15 \
60 chdir:when=7:error=invalid_error_name \
61 chdir:when= \
[all …]
/external/strace/tests-m32/
Dqual_fault-syntax.test44 chdir:42:when=7 \
46 chdir:invalid:when=8 \
48 chdir:error=:when=10 \
50 chdir:error=invalid_error_name:when=11 \
52 chdir:error=-1:when=12 \
54 chdir:error=-2:when=13 \
56 chdir:error=3+:when=14 \
58 chdir:error=4096:when=15 \
59 chdir:when=7:error=invalid_error_name \
60 chdir:when= \
[all …]
Dqual_inject-syntax.test45 chdir:42:when=7 \
47 chdir:invalid:when=8 \
49 chdir:error=:when=10 \
51 chdir:error=invalid_error_name:when=11 \
53 chdir:error=-1:when=12 \
55 chdir:error=-2:when=13 \
57 chdir:error=3+:when=14 \
59 chdir:error=4096:when=15 \
60 chdir:when=7:error=invalid_error_name \
61 chdir:when= \
[all …]
/external/strace/tests-mx32/
Dqual_fault-syntax.test44 chdir:42:when=7 \
46 chdir:invalid:when=8 \
48 chdir:error=:when=10 \
50 chdir:error=invalid_error_name:when=11 \
52 chdir:error=-1:when=12 \
54 chdir:error=-2:when=13 \
56 chdir:error=3+:when=14 \
58 chdir:error=4096:when=15 \
59 chdir:when=7:error=invalid_error_name \
60 chdir:when= \
[all …]
Dqual_inject-syntax.test45 chdir:42:when=7 \
47 chdir:invalid:when=8 \
49 chdir:error=:when=10 \
51 chdir:error=invalid_error_name:when=11 \
53 chdir:error=-1:when=12 \
55 chdir:error=-2:when=13 \
57 chdir:error=3+:when=14 \
59 chdir:error=4096:when=15 \
60 chdir:when=7:error=invalid_error_name \
61 chdir:when= \
[all …]
/external/mockito/src/test/java/org/mockitousage/matchers/
DMatchersTest.java61 import static org.mockito.Mockito.when;
70 when(mock.oneArg(and(eq(false), eq(false)))).thenReturn("0"); in and_overloaded()
71 when(mock.oneArg(and(eq((byte) 1), eq((byte) 1)))).thenReturn("1"); in and_overloaded()
72 when(mock.oneArg(and(eq('a'), eq('a')))).thenReturn("2"); in and_overloaded()
73 when(mock.oneArg(and(eq(1D), eq(1D)))).thenReturn("3"); in and_overloaded()
74 when(mock.oneArg(and(eq(1F), eq(1F)))).thenReturn("4"); in and_overloaded()
75 when(mock.oneArg(and(eq(1), eq(1)))).thenReturn("5"); in and_overloaded()
76 when(mock.oneArg(and(eq(1L), eq(1L)))).thenReturn("6"); in and_overloaded()
77 when(mock.oneArg(and(eq((short) 1), eq((short) 1)))).thenReturn("7"); in and_overloaded()
78 when(mock.oneArg(and(contains("a"), contains("d")))).thenReturn("8"); in and_overloaded()
[all …]
DAnyXMatchersAcceptNullsTest.java15 import static org.mockito.Mockito.when;
29 when(mock.oneArg((Object) any())).thenReturn("matched"); in shouldAcceptNullsInAnyMatcher()
36 when(mock.oneArg((Object) anyObject())).thenReturn("matched"); in shouldAcceptNullsInAnyObjectMatcher()
43 when(mock.oneArg(anyString())).thenReturn("0"); in shouldNotAcceptNullInAnyXMatchers()
44 when(mock.forList(anyListOf(String.class))).thenReturn("1"); in shouldNotAcceptNullInAnyXMatchers()
45 when(mock.forMap(anyMapOf(String.class, String.class))).thenReturn("2"); in shouldNotAcceptNullInAnyXMatchers()
46 when(mock.forCollection(anyCollectionOf(String.class))).thenReturn("3"); in shouldNotAcceptNullInAnyXMatchers()
47 when(mock.forSet(anySetOf(String.class))).thenReturn("4"); in shouldNotAcceptNullInAnyXMatchers()
59 when(mock.forInteger(anyInt())).thenReturn("0"); in shouldNotAcceptNullInAllAnyPrimitiveWrapperMatchers()
60 when(mock.forCharacter(anyChar())).thenReturn("1"); in shouldNotAcceptNullInAllAnyPrimitiveWrapperMatchers()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DSdkPickerTest.java6 import static org.mockito.Mockito.when;
33 when(appManifest.getTargetSdkVersion()).thenReturn(22); in withDefaultSdkConfig_shouldUseTargetSdkFromAndroidManifest()
40 when(appManifest.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
41 when(appManifest.getMinSdkVersion()).thenReturn(19); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
42 when(appManifest.getMaxSdkVersion()).thenReturn(23); in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
49 when(appManifest.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
50 when(appManifest.getMinSdkVersion()).thenReturn(1); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
51 when(appManifest.getMaxSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
59 when(appManifest.getTargetSdkVersion()).thenReturn(22); in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
60 when(appManifest.getMinSdkVersion()).thenReturn(19); in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
[all …]
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithThrowablesTest.java18 import static org.mockito.Mockito.when;
54 when(mock.add("throw")).thenThrow(expected); in shouldStubWithThrowable()
65 doThrow(expected).when(mock).clear(); in shouldSetThrowableToVoidMethod()
75 doThrow(new ExceptionOne()).when(mock).clear(); in shouldLastStubbingVoidBeImportant()
76 doThrow(new ExceptionTwo()).when(mock).clear(); in shouldLastStubbingVoidBeImportant()
85 when(mock.size()).thenThrow(new ExceptionOne()); in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
89 when(mock.size()).thenThrow(new ExceptionTwo()); in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
97 when(reader.read()).thenThrow(ioException); in shouldAllowSettingCheckedException()
108 when(mock.add("quake")).thenThrow(error); in shouldAllowSettingError()
120 when(mock.add(null)).thenThrow((Exception) null); in shouldNotAllowNullExceptionType()
[all …]
DStubbingUsingDoReturnTest.java37 doReturn("foo").when(mock).simpleMethod(); in should_stub()
38 doReturn("bar").when(mock).simpleMethod(); in should_stub()
45 doReturn("foo").when(mock).simpleMethod("foo"); in should_stub_with_args()
46 doReturn("bar").when(mock).simpleMethod(eq("one"), anyInt()); in should_stub_with_args()
57 doThrow(new FooRuntimeException()).when(mock).voidMethod(); in should_stub_with_throwable()
66 doThrow(new IOException()).when(mock).throwsIOException(0); in should_allow_setting_valid_checked_exception()
79 doThrow(new FooCheckedException()).when(mock).throwsIOException(0); in should_detect_invalid_checked_exception()
89 doReturn("foo").when(mock).voidMethod(); in should_scream_when_return_set_for_void()
101 doReturn("foo").when("foo").toString(); in should_scream_when_not_a_mock_passed()
111 doReturn("foo").when((Object) null).toString(); in should_scream_when_null_passed()
[all …]
DDeepStubbingTest.java80 when(sf.createSocket(anyString(), eq(80))).thenReturn(null); in myTest()
88 when(socket.getOutputStream()).thenReturn(out); in simpleCase()
101 when(socketFactory.createSocket().getOutputStream()).thenReturn(out); in oneLevelDeep()
115 when(sf1.createSocket().getOutputStream()).thenReturn(out1); in interactions()
118 when(sf2.createSocket().getOutputStream()).thenReturn(out2); in interactions()
134 when(sf.createSocket().getOutputStream()).thenReturn(out1); in withArguments()
135 when(sf.createSocket("google.com", 80).getOutputStream()).thenReturn(out2); in withArguments()
136 when(sf.createSocket("stackoverflow.com", 80).getOutputStream()).thenReturn(out3); in withArguments()
152 when(sf.createSocket(anyString(), anyInt()).getOutputStream()).thenReturn(out); in withAnyPatternArguments()
167 when(sf.createSocket(anyString(), eq(80)).getOutputStream()).thenReturn(out1); in withComplexPatternArguments()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DDrawableResourceLoaderNoRunnerTest.java5 import static org.mockito.Mockito.when;
59 when(mockTestFile.getName()).thenReturn("foo.png"); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
60 when(mockTestFile.getBaseName()).thenReturn("foo"); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
63 when(mockTestDir.toString()).thenReturn(JAR_PATH_ON_UNIX); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
64 when(mockTestDir.getName()).thenReturn(DRAWABLE_DIR); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
65 when(mockTestDir.listFiles()).thenReturn(new FsFile[]{mockTestFile}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
66 when(mockTestDir.isDirectory()).thenReturn(true); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
68 when(mockTestBaseDir.listFiles()).thenReturn(new FsFile[]{mockTestDir}); in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
82 when(mockTestFile.getName()).thenReturn("foo.png"); in shouldFindDrawableResourcesWorkWithUnixFilePath()
83 when(mockTestFile.getBaseName()).thenReturn("foo"); in shouldFindDrawableResourcesWorkWithUnixFilePath()
[all …]
/external/mockito/src/test/java/org/mockitousage/
DCompilationWarningsTest.java23 doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
24 doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
25 doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
26 … doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
27 …doThrow(new NullPointerException(), new IllegalArgumentException()).when(mock(IMethods.class)).obj… in no_warnings_for_most_common_api()
28 … doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
30 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
31 … doAnswer(ignore()).doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
32 doAnswer(ignore()).doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
33 …doAnswer(ignore()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()
[all …]
/external/volley/src/test/java/com/android/volley/toolbox/
DAdaptedHttpStackTest.java32 import static org.mockito.Mockito.when;
56 when(mHttpResponse.getStatusLine()).thenReturn(mStatusLine); in setUp()
61 when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS)) in requestTimeout()
69 when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS)).thenReturn(mHttpResponse); in emptyResponse()
70 when(mStatusLine.getStatusCode()).thenReturn(12345); in emptyResponse()
71 when(mHttpResponse.getAllHeaders()).thenReturn(new org.apache.http.Header[0]); in emptyResponse()
83 when(mHttpStack.performRequest(REQUEST, ADDITIONAL_HEADERS)).thenReturn(mHttpResponse); in nonEmptyResponse()
84 when(mStatusLine.getStatusCode()).thenReturn(12345); in nonEmptyResponse()
85 when(mHttpResponse.getAllHeaders()).thenReturn(new org.apache.http.Header[0]); in nonEmptyResponse()
86 when(mHttpResponse.getEntity()).thenReturn(mHttpEntity); in nonEmptyResponse()
[all …]
DAndroidAuthenticatorTest.java55when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture); in failedGetAuthToken()
56 when(mFuture.getResult()).thenThrow(new AuthenticatorException("sadness!")); in failedGetAuthToken()
65when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture); in resultContainsIntent()
66 when(mFuture.getResult()).thenReturn(bundle); in resultContainsIntent()
67 when(mFuture.isDone()).thenReturn(true); in resultContainsIntent()
68 when(mFuture.isCancelled()).thenReturn(false); in resultContainsIntent()
75when(mAccountManager.getAuthToken(mAccount, "cooltype", false, null, null)).thenReturn(mFuture); in missingAuthToken()
76 when(mFuture.getResult()).thenReturn(bundle); in missingAuthToken()
77 when(mFuture.isDone()).thenReturn(true); in missingAuthToken()
78 when(mFuture.isCancelled()).thenReturn(false); in missingAuthToken()
[all …]
/external/dagger2/producers/src/test/java/dagger/producers/monitoring/internal/
DMonitorsTest.java35 import static org.mockito.Mockito.when;
67 when(mockProductionComponentMonitorFactory.create(any(Object.class))).thenReturn(null); in singleMonitor_nullProductionComponentMonitor()
77 .when(mockProductionComponentMonitorFactory) in singleMonitor_throwingProductionComponentMonitorFactory()
87 when(mockProductionComponentMonitorFactory.create(any(Object.class))) in singleMonitor_nullProducerMonitor()
89 when(mockProductionComponentMonitor.producerMonitorFor(any(ProducerToken.class))) in singleMonitor_nullProducerMonitor()
101 when(mockProductionComponentMonitorFactory.create(any(Object.class))) in singleMonitor_throwingProductionComponentMonitor()
104 .when(mockProductionComponentMonitor) in singleMonitor_throwingProductionComponentMonitor()
159 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodStarting(); in singleMonitor_throwingProducerMonitorSuccess()
160 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).methodFinished(); in singleMonitor_throwingProducerMonitorSuccess()
161 doThrow(new RuntimeException("monkey")).when(mockProducerMonitor).succeeded(any(Object.class)); in singleMonitor_throwingProducerMonitorSuccess()
[all …]
/external/ltp/testcases/network/stress/route/
D00_Descriptions.txt2 Verify the kernel is not crashed when the destination of an IPv4 route
6 Verify the kernel is not crashed when the destination of an IPv4 route
10 Verify the kernel is not crashed when the gateway of an IPv4 route is
14 Verify the kernel is not crashed when the gateway of an IPv4 route is
18 Verify the kernel is not crashed when the interface of an IPv4 route is
22 Verify the kernel is not crashed when the interface of an IPv4 route is
26 Verify the kernel is not crashed when the IPv4 route is modified by
30 Verify the kernel is not crashed when IPv4 route is add by route command
34 Verify the kernel is not crashed when IPv4 route is add by ip command
38 Verify the kernel is not crashed when IPv4 route is add by route command
[all …]
/external/dexmaker/dexmaker-mockito-inline-tests/src/androidTest/java/com/android/dx/mockito/inline/tests/
DMockFinal.java34 import static org.mockito.Mockito.when;
46 when(mockClassLoader.getParent()).thenReturn(fakeParent); in mockFinalJavaMethod()
58 when(mockAttributes.getColorMode()).thenReturn(42); in mockFinalAndroidFrameworkClass()
71 when(mockService.onBind(any(Intent.class))).thenReturn(fakeBinder); in mockFinalMethodOfAndroidFrameworkClass()
90 when(mock.returnA()).thenReturn("fakeA"); in mockNonDefaultConstructorClass()
104 when(mock.returnA()).thenReturn("fakeA"); in mockNonDefaultConstructorInterface()
145 when(mockedSuper.returnA()).thenReturn("fakeA"); in mockSubClass()
146 when(mockedSuper.returnB()).thenReturn("fakeB"); in mockSubClass()
147 when(mockedSuper.returnC()).thenReturn("fakeC"); in mockSubClass()
160 when(mocked.returnA()).thenReturn("fake2A"); in mockSubClass()
[all …]
DMockNonPublic.java25 import static org.mockito.Mockito.when;
36 when(c.returnA()).thenReturn("fakeA"); in mockSingleMethod()
44 when(c.returnA()).thenReturn("fakeA"); in spySingleMethod()
52 when(c.returnA()).thenReturn("fakeA"); in spyWrappedSingleMethod()
69 when(c.returnA()).thenReturn("fakeA"); in mockDualMethod()
73 when(c.returnB()).thenReturn("fakeB"); in mockDualMethod()
83 when(c.returnA()).thenReturn("fakeA"); in spyDualMethod()
87 when(c.returnB()).thenReturn("fakeB"); in spyDualMethod()
97 when(c.returnA()).thenReturn("fakeA"); in spyWrappedDualMethod()
101 when(c.returnB()).thenReturn("fakeB"); in spyWrappedDualMethod()
[all …]
/external/icu/icu4c/source/samples/date/
Ddate.c51 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, UErrorCod…
80 UDate when; in main() local
165 when = getWhen(millis, seconds, format, style, parse, tz, &status); in main()
171 date(when, tz, style, format, &status); in main()
244 date(UDate when, in date() argument
259 printf("%.0f\n", when); in date()
262 printf("%.3f\n", when/1000.0); in date()
272 len = udat_format(fmt, when, 0, len, 0, status); in date()
277 udat_format(fmt, when, s, len + 1, 0, status); in date()
300 UDate when=0; in getWhen() local
[all …]
/external/libunwind/include/
Dlibunwind-dynamic.h88 int32_t when; /* when does it take effect? */ member
178 #define _U_dyn_op_save_reg(op, qp, when, reg, dst) \ argument
179 (*(op) = _U_dyn_op (UNW_DYN_SAVE_REG, (qp), (when), (reg), (dst)))
181 #define _U_dyn_op_spill_fp_rel(op, qp, when, reg, offset) \ argument
182 (*(op) = _U_dyn_op (UNW_DYN_SPILL_FP_REL, (qp), (when), (reg), \
185 #define _U_dyn_op_spill_sp_rel(op, qp, when, reg, offset) \ argument
186 (*(op) = _U_dyn_op (UNW_DYN_SPILL_SP_REL, (qp), (when), (reg), \
189 #define _U_dyn_op_add(op, qp, when, reg, value) \ argument
190 (*(op) = _U_dyn_op (UNW_DYN_ADD, (qp), (when), (reg), (value)))
192 #define _U_dyn_op_pop_frames(op, qp, when, num_frames) \ argument
[all …]
/external/mockito/src/test/java/org/mockitousage/internal/junit/
DUnusedStubbingsFinderTest.java19 import static org.mockito.Mockito.when;
53 when(mock1.simpleMethod()).thenReturn("1"); in no_unused_stubbings()
64 when(mock1.simpleMethod()).thenReturn("1"); in unused_stubbings()
73 when(mock1.simpleMethod(1)).thenReturn("1"); in some_unused_stubbings()
74 when(mock2.simpleMethod(2)).thenReturn("2"); in some_unused_stubbings()
75 when(mock2.simpleMethod(3)).thenReturn("3"); in some_unused_stubbings()
90 when(mock1.simpleMethod(1)).thenReturn("1"); in some_unused_stubbings_by_location()
91 when(mock2.simpleMethod(2)).thenReturn("2"); in some_unused_stubbings_by_location()
92 when(mock2.simpleMethod(3)).thenReturn("3"); in some_unused_stubbings_by_location()
108 when(mock1.simpleMethod(1)).thenReturn("1"); when(mock2.simpleMethod(1)).thenReturn("1"); in stubbing_used_by_location()
[all …]
/external/mockito/src/test/java/org/mockitousage/bugs/
DMockitoStubbedCallInAnswerTest.java14 import static org.mockito.Mockito.when;
27 when(bar.doInt()).thenReturn(0); in stubbing_the_right_mock()
28 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in stubbing_the_right_mock()
38 when(foo.doInt()).thenReturn(1); in stubbing_the_right_mock()
49 when(foo.doString()).thenAnswer(new Answer<String>() { in return_type_validation()
58 when(foo.doString()).thenReturn(""); in return_type_validation()
64 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in prevents_stack_overflow()
71 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in prevents_stack_overflow()
83 when(bar.doInt()).thenReturn(10); in overriding_stubbing()
84 when(foo.doInt()).thenAnswer(new Answer<Integer>() { in overriding_stubbing()
[all …]
/external/mockito/src/test/java/org/mockitousage/jls/
DJLS_15_12_2_5Test.java20 import static org.mockito.Mockito.when;
57 when(mock.oneArg(isNull())).thenReturn("ok"); in with_single_arg()
69 when(mock.oneArg((String) isNull())).thenReturn("ok"); in with_single_arg_and_matcher_cast()
78 when(mock.oneArg(isNull())).thenReturn("ok"); in with_single_arg_and_null_Object_reference()
88 when(mock.varargs(isNull())).thenReturn("ok"); in with_variable_arg()
100 when(mock.varargs((String) isNull())).thenReturn("ok"); in with_variable_arg_and_matcher_String_cast()
109 when(mock.varargs((String[]) isNull())).thenReturn("ok"); in with_variable_arg_and_matcher_String_array_cast()
118 when(mock.varargs(isNull())).thenReturn("ok"); in with_variable_arg_and_null_Object_array()
128 when(mock.varargs(isNull())).thenReturn("ok"); in with_variable_arg_and_null_Object_arg()
191 when(mock.oneArg(isNull())).thenReturn("ok"); in with_single_arg()
[all …]

12345678910>>...204