HomeSort by relevance Sort by last modified time
    Searched defs:when (Results 1 - 25 of 52) sorted by null

1 2 3

  /external/littlemock/src/com/google/testing/littlemock/
Behaviour.java 26 public <T> T when(T mock); method in interface:Behaviour
  /external/mockito/src/org/mockito/stubbing/
Stubber.java 10 * 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(mock).someVoidMethod();
    [all...]
  /external/chromium_org/chrome/browser/drive/
event_logger.h 33 base::Time when; // When the event occurred. member in struct:drive::EventLogger::Event
  /external/apache-xml/src/main/java/org/apache/xalan/templates/
ElemChoose.java 33 * <!ELEMENT xsl:choose (xsl:when+, xsl:otherwise?)>
92 ElemWhen when = (ElemWhen) childElem; local
94 // must be xsl:when
98 // System.err.println("\""+when.getTest().getPatternString()+"\"");
100 // if(when.getTest().getPatternString().equals("COLLECTION/icuser/ictimezone/LITERAL='GMT +13:00 Pacific/Tongatapu'"))
103 if (when.getTest().bool(xctxt, sourceNode, when)) {
104 transformer.executeChildTemplates(when, true);
  /external/mockito/src/org/mockito/internal/stubbing/
StubberImpl.java 22 public <T> T when(T mock) { method in class:StubberImpl
  /external/chromium_org/net/http/
http_server_properties_impl.h 169 // List of broken host:ports and the times when they can be expired.
172 base::TimeTicks when; member in struct:net::HttpServerPropertiesImpl::BrokenAlternateProtocolEntry
http_server_properties_impl.cc 323 entry.when = base::TimeTicks::Now() + delay * (1 << (count - 1));
331 // Otherwse it will be rescheduled automatically when the pending
494 if (now < entry.when) {
510 base::TimeTicks when = broken_alternate_protocol_list_.front().when; local
511 base::TimeDelta delay = when > now ? when - now : base::TimeDelta();
  /external/chromium_org/remoting/base/
plugin_thread_task_runner.cc 11 base::TimeDelta CalcTimeDelta(base::TimeTicks when) {
12 return std::max(when - base::TimeTicks::Now(), base::TimeDelta());
51 // When DetachAndRunShutdownLoop() is called from NPP_Destroy() all scheduled
137 // Post tasks to the plugin thread when it is availabe or spin the shutdown
150 void PluginThreadTaskRunner::PostDelayedRunTasks(base::TimeTicks when) {
156 // Schedule RunDelayedTasks() to be called at |when| if it hasn't been
158 if (scheduled_timers_.insert(when).second) {
159 base::TimeDelta delay = CalcTimeDelta(when);
161 base::Bind(&PluginThreadTaskRunner::RunDelayedTasks, this, when);
196 void PluginThreadTaskRunner::RunDelayedTasks(base::TimeTicks when) {
222 base::TimeTicks when = delayed_queue_.top().delayed_run_time; local
    [all...]
  /art/test/092-locale/src/
Main.java 73 Date when = usaCal.getTime(); local
77 + fmt.format(when));
89 when = franceCal.getTime();
93 + fmt.format(when));
  /external/chromium_org/third_party/icu/source/samples/date/
date.c 47 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,
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, s, len + 1, 0, status)
296 UDate when=0; local
    [all...]
  /external/dhcpcd/
eloop.c 51 struct timeval when; member in struct:timeout
114 const struct timeval *when, void (*callback)(void *), void *arg)
120 timeradd(&now, when, &w);
148 t->when.tv_sec = w.tv_sec;
149 t->when.tv_usec = w.tv_usec;
158 if (!timeouts || timercmp(&t->when, &timeouts->when, <)) {
164 if (timercmp(&t->when, &tt->next->when, <)) {
174 add_q_timeout_sec(int queue, time_t when, void (*callback)(void *), void *arg
    [all...]
  /external/icu/icu4c/source/samples/date/
date.c 47 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,
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, s, len + 1, 0, status)
296 UDate when=0; local
    [all...]
  /external/mockito/src/org/mockito/
Mockito.java 101 * 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 it's relevant.
1442 public static <T> OngoingStubbing<T> when(T methodCall) { method in class:Mockito
    [all...]
  /external/owasp/sanitizer/empiricism/
html-containment.js 268 function when(f, var_args) { function
  /external/owasp/sanitizer/distrib/lib/
jsr305.jar 
  /external/owasp/sanitizer/lib/jsr305/
jsr305.jar 
  /external/chromium_org/chrome/browser/net/
url_info.cc 311 MinMaxAverage queue, when; local
320 HoursMinutesSeconds(when.sample(
  /external/chromium_org/third_party/libevent/test/
regress_http.c 261 struct timeval when = { 0, 0 }; local
269 http_chunked_trickle_cb, state, &when);
279 struct timeval when = { 0, 0 }; local
291 event_once(-1, EV_TIMEOUT, http_chunked_trickle_cb, state, &when);
  /external/libunwind/include/
libunwind-dynamic.h 35 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, reg, value)
    [all...]
  /external/mockito/src/org/mockito/internal/
MockitoCore.java 74 public <T> OngoingStubbing<T> when(T methodCall) { method in class:MockitoCore
  /external/owasp/sanitizer/tools/findbugs/lib/
annotations.jar 
  /external/chromium_org/third_party/icu/source/test/cintltst/
cdattst.c 244 log_err("FAIL: udat_parse(\"bad string\") passed when it should have failed\n");
800 UDate when; local
    [all...]
  /external/icu/icu4c/source/test/cintltst/
cdattst.c 244 log_err("FAIL: udat_parse(\"bad string\") passed when it should have failed\n");
800 UDate when; local
    [all...]
  /external/libunwind/src/ia64/
Gparser.c 155 set_reg (struct ia64_reg_info *reg, enum ia64_where where, int when,
160 if (reg->when == IA64_WHEN_NEVER)
161 reg->when = when;
191 reg->when = t;
218 /* Next, compute when the fp, general, and branch registers get
439 sr->curr.reg[IA64_REG_PSP].when =
480 reg->when = sr->region_start + MIN ((int) t, sr->region_len - 1);
570 r->when = IA64_WHEN_NEVER;
592 r->when = sr->region_start + MIN ((int) t, sr->region_len - 1)
754 int i, ret, when, rlen = sr->region_len; local
795 int32_t when, len; local
    [all...]
unwind_i.h 433 int when; /* when the register gets saved */ member in struct:ia64_reg_info

Completed in 1604 milliseconds

1 2 3