Home
last modified time | relevance | path

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

12345678910>>...183

/external/strace/tests/
Dqual_fault-syntax.test45 invalid_syscall_name:when=3 \
47 -1:when=4 \
49 -2:when=5 \
51 32767:when=6 \
53 chdir:42:when=7 \
55 chdir:invalid:when=8 \
57 chdir:error=:when=10 \
59 chdir:error=invalid_error_name:when=11 \
61 chdir:error=-1:when=12 \
63 chdir:error=-2:when=13 \
[all …]
Dqual_inject-syntax.test45 invalid_syscall_name:when=3 \
47 -1:when=4 \
49 -2:when=5 \
51 32767:when=6 \
55 chdir:42:when=7 \
57 chdir:invalid:when=8 \
59 chdir:error=:when=10 \
61 chdir:error=invalid_error_name:when=11 \
63 chdir:error=-1:when=12 \
65 chdir:error=-2:when=13 \
[all …]
/external/strace/tests-m32/
Dqual_fault-syntax.test45 invalid_syscall_name:when=3 \
47 -1:when=4 \
49 -2:when=5 \
51 32767:when=6 \
53 chdir:42:when=7 \
55 chdir:invalid:when=8 \
57 chdir:error=:when=10 \
59 chdir:error=invalid_error_name:when=11 \
61 chdir:error=-1:when=12 \
63 chdir:error=-2:when=13 \
[all …]
Dqual_inject-syntax.test45 invalid_syscall_name:when=3 \
47 -1:when=4 \
49 -2:when=5 \
51 32767:when=6 \
55 chdir:42:when=7 \
57 chdir:invalid:when=8 \
59 chdir:error=:when=10 \
61 chdir:error=invalid_error_name:when=11 \
63 chdir:error=-1:when=12 \
65 chdir:error=-2:when=13 \
[all …]
/external/strace/tests-mx32/
Dqual_fault-syntax.test45 invalid_syscall_name:when=3 \
47 -1:when=4 \
49 -2:when=5 \
51 32767:when=6 \
53 chdir:42:when=7 \
55 chdir:invalid:when=8 \
57 chdir:error=:when=10 \
59 chdir:error=invalid_error_name:when=11 \
61 chdir:error=-1:when=12 \
63 chdir:error=-2:when=13 \
[all …]
Dqual_inject-syntax.test45 invalid_syscall_name:when=3 \
47 -1:when=4 \
49 -2:when=5 \
51 32767:when=6 \
55 chdir:42:when=7 \
57 chdir:invalid:when=8 \
59 chdir:error=:when=10 \
61 chdir:error=invalid_error_name:when=11 \
63 chdir:error=-1:when=12 \
65 chdir:error=-2:when=13 \
[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((double) 1), eq((double) 1)))).thenReturn("3"); in and_overloaded()
74 when(mock.oneArg(and(eq((float) 1), eq((float) 1)))).thenReturn("4"); in and_overloaded()
75 when(mock.oneArg(and(eq((int) 1), eq((int) 1)))).thenReturn("5"); in and_overloaded()
76 when(mock.oneArg(and(eq((long) 1), eq((long) 1)))).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 …]
DMoreMatchersTest.java19 import static org.mockito.Mockito.when;
27 when(mock.objectArgMethod(any(String.class))).thenReturn("string"); in should_help_out_with_unnecessary_casting()
63 when(mock.listArgMethod(anyListOf(String.class))).thenReturn("list"); in should_help_out_with_unnecessary_casting_of_lists()
73 when(mock.setArgMethod(anySetOf(String.class))).thenReturn("set"); in should_help_out_with_unnecessary_casting_of_sets()
83 when(mock.forMap(anyMapOf(String.class, String.class))).thenReturn("map"); in should_help_out_with_unnecessary_casting_of_maps()
93 when(mock.collectionArgMethod(anyCollectionOf(String.class))).thenReturn("collection"); in should_help_out_with_unnecessary_casting_of_collections()
103 when(mock.iterableArgMethod(anyIterableOf(String.class))).thenReturn("iterable"); in should_help_out_with_unnecessary_casting_of_iterables()
111 when(mock.objectArgMethod(isNull(LinkedList.class))).thenReturn("string"); in should_help_out_with_unnecessary_casting_of_nullity_checks()
112 when(mock.objectArgMethod(notNull(LinkedList.class))).thenReturn("string"); in should_help_out_with_unnecessary_casting_of_nullity_checks()
113 when(mock.objectArgMethod(isNotNull(LinkedList.class))).thenReturn("string"); in should_help_out_with_unnecessary_casting_of_nullity_checks()
/external/mockito/src/test/java/org/mockitousage/
DCompilationWarningsTest.java19 doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
20 doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
21 doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
22 … doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
23 …doThrow(new NullPointerException(), new IllegalArgumentException()).when(mock(IMethods.class)).obj… in no_warnings_for_most_common_api()
24 … doThrow(NullPointerException.class).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
26 doAnswer(ignore()).doReturn(null).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
27 … doAnswer(ignore()).doReturn("a", 12).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
28 doAnswer(ignore()).doReturn(1000).when(mock(IMethods.class)).objectReturningMethodNoArgs(); in no_warnings_for_most_common_api()
29 …doAnswer(ignore()).doThrow(new NullPointerException()).when(mock(IMethods.class)).objectReturningM… in no_warnings_for_most_common_api()
[all …]
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithThrowablesTest.java40 when(mock.add("throw")).thenThrow(expected); in shouldStubWithThrowable()
54 doThrow(expected).when(mock).clear(); in shouldSetThrowableToVoidMethod()
65 doThrow(new ExceptionOne()).when(mock).clear(); in shouldLastStubbingVoidBeImportant()
66 doThrow(new ExceptionTwo()).when(mock).clear(); in shouldLastStubbingVoidBeImportant()
77 when(mock.get(1)).thenThrow(new ExceptionOne()); in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
80 when(mock.get(1)).thenThrow(new ExceptionTwo()); in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
91 when(reader.read()).thenThrow(ioException); in shouldAllowSettingCheckedException()
105 when(mock.add("quake")).thenThrow(error); in shouldAllowSettingError()
117 when(mock.add(null)).thenThrow((Exception) null); in shouldNotAllowNullExceptionType()
123 when(mock.add(null)).thenThrow(NaughtyException.class); in shouldInstantiateExceptionClassOnInteraction()
[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 …]
DStubbingConsecutiveAnswersTest.java24 when(mock.simpleMethod()) in should_return_consecutive_values()
38 when(mock.simpleMethod()).thenReturn(null, (String[]) null); in should_return_consecutive_values_for_two_nulls()
46 when(mock.simpleMethod()).thenReturn("one", "two", "three"); in should_return_consecutive_values_set_by_shorten_then_return_method()
57 when(mock.simpleMethod()).thenReturn("zero") in should_return_consecutive_value_and_throw_exceptions_set_by_shorten_return_methods()
83 when(mock.simpleMethod()).thenThrow(new RuntimeException()) in should_throw_consecutively()
110 when(mock.simpleMethod()).thenThrow(new RuntimeException(), in should_throw_consecutively_set_by_shorten_then_throw_method()
138 when(mock.simpleMethod()).thenThrow(IllegalArgumentException.class); in should_throw_classes()
155 when(mock.simpleMethod()).thenThrow(RuntimeException.class, in should_throw_consecutively_classes_set_by_shorten_then_throw_method()
182 when(mock.simpleMethod()) in should_mix_consecutive_returns_with_excepions()
206 when(mock.simpleMethod()) in should_validate_consecutive_exception()
[all …]
DBasicStubbingTest.java32 when(mock.objectReturningMethod(isA(Integer.class))).thenReturn(100); in should_evaluate_latest_stubbing_first()
33 when(mock.objectReturningMethod(200)).thenReturn(200); in should_evaluate_latest_stubbing_first()
42 when(mock.booleanReturningMethod()).thenReturn(true); in should_stubbing_be_treated_as_interaction()
55 when(mockTwo.toString()).thenReturn("test"); in should_allow_stubbing_to_string()
63 when(mock.simpleMethod("one")).thenThrow(new RuntimeException()); in should_stubbing_not_be_treated_as_interaction()
64 doThrow(new RuntimeException()).when(mock).simpleMethod("two"); in should_stubbing_not_be_treated_as_interaction()
73 when("").thenReturn(""); in unfinished_stubbing_cleans_up_the_state()
105 when(localMock.objectReturningMethod(isA(Integer.class))).thenReturn(100); in test_stub_only_not_verifiable()
106 when(localMock.objectReturningMethod(200)).thenReturn(200); in test_stub_only_not_verifiable()
/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/volley/src/test/java/com/android/volley/toolbox/
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/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/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/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/mockito/src/test/java/org/mockitousage/internal/junit/
DUnusedStubbingsFinderTest.java15 import static org.mockito.Mockito.when;
49 when(mock1.simpleMethod()).thenReturn("1"); in no_unused_stubbings()
60 when(mock1.simpleMethod()).thenReturn("1"); in unused_stubbings()
69 when(mock1.simpleMethod(1)).thenReturn("1"); in some_unused_stubbings()
70 when(mock2.simpleMethod(2)).thenReturn("2"); in some_unused_stubbings()
71 when(mock2.simpleMethod(3)).thenReturn("3"); in some_unused_stubbings()
86 when(mock1.simpleMethod(1)).thenReturn("1"); in some_unused_stubbings_by_location()
87 when(mock2.simpleMethod(2)).thenReturn("2"); in some_unused_stubbings_by_location()
88 when(mock2.simpleMethod(3)).thenReturn("3"); in some_unused_stubbings_by_location()
104 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/jls/
DJLS_15_12_2_5Test.java16 import static org.mockito.Mockito.when;
53 when(mock.oneArg(isNull())).thenReturn("ok"); in with_single_arg()
65 when(mock.oneArg((String) isNull())).thenReturn("ok"); in with_single_arg_and_matcher_cast()
74 when(mock.oneArg(isNull())).thenReturn("ok"); in with_single_arg_and_null_Object_reference()
84 when(mock.varargs(isNull())).thenReturn("ok"); in with_variable_arg()
96 when(mock.varargs((String) isNull())).thenReturn("ok"); in with_variable_arg_and_matcher_String_cast()
105 when(mock.varargs((String[]) isNull())).thenReturn("ok"); in with_variable_arg_and_matcher_String_array_cast()
114 when(mock.varargs(isNull())).thenReturn("ok"); in with_variable_arg_and_null_Object_array()
124 when(mock.varargs(isNull())).thenReturn("ok"); in with_variable_arg_and_null_Object_arg()
187 when(mock.oneArg(isNull())).thenReturn("ok"); in with_single_arg()
[all …]
/external/mockito/src/test/java/org/mockito/internal/junit/
DArgMismatchFinderTest.java12 import static org.mockito.Mockito.when;
32 when(mock1.simpleMethod(1)).thenReturn("1"); in no_mismatch_when_mock_different()
45 when(mock1.simpleMethod(1)).thenReturn("1"); in no_mismatch_when_method_different()
58 when(mock1.simpleMethod(1)).thenReturn("1"); in no_mismatch_when_stubbing_used()
72 when(mock1.simpleMethod(1)).thenReturn("1"); in stubbing_mismatch()
85 when(mock1.simpleMethod(1)).thenReturn("1"); in single_mismatch_with_multiple_invocations()
100 when(mock1.simpleMethod(1)).thenReturn("1"); in single_invocation_with_multiple_stubs()
101 when(mock1.simpleMethod(2)).thenReturn("2"); in single_invocation_with_multiple_stubs()
116 when(mock1.simpleMethod(1)).thenReturn("1"); //unused in mismatch_reports_only_unstubbed_invocations()
117 when(mock1.simpleMethod(2)).thenReturn("2"); //used in mismatch_reports_only_unstubbed_invocations()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DMockSessionBuilder.java20 import static org.mockito.Mockito.when;
76 when(session.getId()).thenReturn(id); in build()
77 when(session.isValid()).thenReturn(valid); in build()
78 when(session.getProtocol()).thenReturn(protocol); in build()
79 when(session.getPeerHost()).thenReturn(host); in build()
80 when(session.getPeerPort()).thenReturn(port); in build()
81 when(session.getCipherSuite()).thenReturn(cipherSuite); in build()
82 when(session.toBytes()).thenReturn(encodedBytes); in build()
/external/fmtlib/doc/bootstrap/mixins/
Dgrid-framework.less12 .col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
16 .col(@index, @list) when (@index > @grid-columns) { // terminal
19 // Prevent columns from collapsing when empty
34 .col(@index, @list) when (@index =< @grid-columns) { // general
38 .col(@index, @list) when (@index > @grid-columns) { // terminal
46 .calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {
51 .calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {
56 .calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {
61 .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
66 .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
[all …]

12345678910>>...183