Searched defs:when (Results 1 - 25 of 70) sorted by relevance

123

/external/littlemock/src/com/google/testing/littlemock/
H A DBehaviour.java26 public <T> T when(T mock); method in interface:Behaviour
/external/mockito/src/org/mockito/stubbing/
H A DStubber.java10 * Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
14 * doThrow(new RuntimeException()).when(mockedList).clear();
20 * Also useful when stubbing consecutive calls:
25 * .when(mock).someVoidMethod();
45 * Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
50 * .when(mockedList).clear();
72 <T> T when(T mock); method in interface:Stubber
79 * .when(mock).someVoidMethod();
83 * @param toBeThrown to be thrown when the stubbed method is called
93 * .when(moc
[all...]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/s3/
H A Dwebsite.py40 :ivar error_key: The object key name to use when a 4xx class error
41 occurs. This key identifies the page that is returned when
46 no other values are considered when configuring the website
51 and redirects that apply when the conditions are met.
122 :ivar protocol: Protocol to use (http, https) when redirecting requests.
180 rule = RoutingRule.when(key_prefix='foo/').then_redirect('example.com')
212 def when(cls, key_prefix=None, http_error_code=None): member in class:RoutingRule
228 :ivar key_prefix: The object key name prefix when the redirect is applied.
234 :ivar http_error_code: The HTTP error code when the redirect is applied. In
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/demos/guestbook/client/
H A Dguestbook.py39 when = messages.IntegerField(2) variable in class:Note
/external/mockito/src/org/mockito/internal/stubbing/
H A DStubberImpl.java22 public <T> T when(T mock) { method in class:StubberImpl
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowMessage.java17 private long when; field in class:ShadowMessage
115 return when;
118 public void setWhen(long when) { argument
119 this.when = when;
H A DShadowNotification.java23 public void __constructor__(int icon, CharSequence tickerText, long when) { argument
26 realNotification.when = when;
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/demos/guestbook/server/
H A Dguestbook.py82 when = messages.IntegerField(2) variable in class:Note
107 if request.when is not None:
108 when = datetime.datetime.utcfromtimestamp(request.when)
112 when = datetime.datetime.now()
113 note = Greeting(content=request.text, date=when)
122 when = datetime.datetime.utcfromtimestamp(
124 query.filter('date <=', when)
129 when = int(time.mktime(note_model.date.utctimetuple()))
131 when
[all...]
/external/compiler-rt/lib/asan/
H A Dasan_mac.cc175 INTERCEPTOR(void, dispatch_after_f, dispatch_time_t when, argument
184 return REAL(dispatch_after_f)(when, dq, (void*)asan_ctxt,
207 void dispatch_after(dispatch_time_t when, dispatch_queue_t queue,
238 dispatch_time_t when, dispatch_queue_t queue, void(^work)(void)) {
241 REAL(dispatch_after)(when, queue, asan_block);
237 INTERCEPTOR(void, dispatch_after, dispatch_time_t when, dispatch_queue_t queue, void(^work)(void)) argument
/external/dhcpcd-6.8.2/
H A Deloop.h57 struct timespec when; member in struct:eloop_timeout
H A Deloop.c260 const struct timespec *when, void (*callback)(void *), void *arg)
266 timespecadd(&now, when, &w);
294 t->when = w;
302 if (timespeccmp(&t->when, &tt->when, <)) {
312 eloop_q_timeout_add_sec(struct eloop_ctx *ctx, int queue, time_t when, argument
317 tv.tv_sec = when;
548 if (timespeccmp(&now, &t->when, >)) {
554 timespecsub(&t->when, &now, &ts);
259 eloop_q_timeout_add_tv(struct eloop_ctx *ctx, int queue, const struct timespec *when, void (*callback)(void *), void *arg) argument
/external/icu/icu4c/source/samples/date/
H A Ddate.c47 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, UErrorCode *status);
76 UDate when; local
160 /* get the 'when' (or now) */
161 when = getWhen(millis, seconds, format, style, parse, tz, &status);
167 date(when, tz, style, format, &status);
240 date(UDate when, argument
255 printf("%.0f\n", when);
258 printf("%.3f\n", when/1000.0);
268 len = udat_format(fmt, when, 0, len, 0, status);
273 udat_format(fmt, when,
296 UDate when=0; local
[all...]
/external/mockito/src/org/mockito/internal/
H A DMockitoCore.java74 public <T> OngoingStubbing<T> when(T methodCall) { method in class:MockitoCore
/external/owasp/sanitizer/empiricism/
H A Dhtml-containment.js268 function when(f, var_args) { function
/external/guice/lib/build/
H A Djsr305.jar ... .Annotation { public abstract javax.annotation.meta.When when () } javax/annotation/Detainted.class Detainted.java package ...
/external/owasp/sanitizer/distrib/lib/
H A Djsr305.jar ... .Annotation { public abstract javax.annotation.meta.When when () } javax/annotation/Detainted.class Detainted.java package ...
/external/owasp/sanitizer/lib/jsr305/
H A Djsr305.jar ... .Annotation { public abstract javax.annotation.meta.When when () } javax/annotation/Detainted.class Detainted.java package ...
/external/owasp/sanitizer/tools/findbugs/lib/
H A Djsr305.jar ... .Annotation { public abstract javax.annotation.meta.When when () } javax/annotation/Detainted.class Detainted.java package ...
H A Dannotations.jar ... edu.umd.cs.findbugs.annotations.When value () } edu/umd/cs/findbugs/annotations/PossiblyNull.class PossiblyNull ...
/external/vogar/lib/
H A Djsr305.jar ... .Annotation { public abstract javax.annotation.meta.When when () } javax/annotation/Nonnegative.class Nonnegative.java package ...
/external/glide/library/src/main/java/com/bumptech/glide/request/target/
H A DSquaringDrawable.java130 public void scheduleSelf(Runnable what, long when) { argument
131 super.scheduleSelf(what, when);
132 wrapped.scheduleSelf(what, when);
/external/icu/icu4c/source/tools/genrb/
H A Dderb.cpp44 static void reportError(const char *pname, UErrorCode *status, const char *when);
134 fprintf(stderr, "%s: Error: don't specify an encoding (-e) when writing to stdout (-c).\n", pname);
639 static void reportError(const char *pname, UErrorCode *status, const char *when) { argument
640 u_fprintf(ustderr, "%s: error %d while %s: %s\n", pname, *status, when, u_errorName(*status));
/external/mockito/src/org/mockito/
H A DMockito.java101 * when(mockedList.get(0)).thenReturn("first");
102 * when(mockedList.get(1)).thenThrow(new RuntimeException());
131 * <li> Last stubbing is more important - when you stubbed the same method with
134 * e.g. when stubbing exactly the same method calls or sometimes when argument matchers are used, etc.</li>
143 * Sometimes, when extra flexibility is required then you might use argument matchers:
147 * when(mockedList.get(anyInt())).thenReturn("element");
150 * when(mockedList.contains(argThat(isValid()))).thenReturn("element");
239 * doThrow(new RuntimeException()).when(mockedList).clear();
335 * <code>verifyNoMoreInteractions()</code> is a handy assertion from the interaction testing toolkit. Use it only when i
1442 public static <T> OngoingStubbing<T> when(T methodCall) { method in class:Mockito
[all...]
/external/zlib/src/examples/
H A Dgun.c54 1.2.4) is on the same file, when gun is linked with zlib 1.2.2. Also the
520 struct utimbuf when; local
533 when.actime = was.st_atime;
534 when.modtime = was.st_mtime;
535 (void)utime(to, &when);
/external/libunwind/include/
H A Dlibunwind-dynamic.h35 when a program registers a dynamically generated procedure, it uses
88 int32_t when; /* when does it take effect? */ member in struct:unw_dyn_op
179 #define _U_dyn_op_save_reg(op, qp, when, reg, dst) \
180 (*(op) = _U_dyn_op (UNW_DYN_SAVE_REG, (qp), (when), (reg), (dst)))
182 #define _U_dyn_op_spill_fp_rel(op, qp, when, reg, offset) \
183 (*(op) = _U_dyn_op (UNW_DYN_SPILL_FP_REL, (qp), (when), (reg), \
186 #define _U_dyn_op_spill_sp_rel(op, qp, when, reg, offset) \
187 (*(op) = _U_dyn_op (UNW_DYN_SPILL_SP_REL, (qp), (when), (reg), \
190 #define _U_dyn_op_add(op, qp, when, re
[all...]

Completed in 1015 milliseconds

123