Searched defs:then (Results 1 - 25 of 46) sorted by relevance

12

/external/mockito/src/main/java/org/mockito/internal/stubbing/
H A DConsecutiveStubbing.java22 public OngoingStubbing<T> then(Answer<?> answer) { method in class:ConsecutiveStubbing
H A DOngoingStubbingImpl.java34 public OngoingStubbing<T> then(Answer<?> answer) { method in class:OngoingStubbingImpl
/external/ltp/tools/pounder21/src/time_tests/
H A Dinconsistency-check.c49 long now, then; local
62 now = then = list[0].tv_sec;
66 while (seconds == -1 || now - then < seconds) {
/external/mockito/src/main/java/org/mockito/stubbing/
H A DOngoingStubbing.java10 * Simply put: "<b>When</b> the x method is called <b>then</b> return y". E.g:
75 * If throwables contain a checked exception then it has to
81 * If throwable is null then exception will be thrown.
98 * If the throwable class is a checked exception then it has to
101 * If throwable is null then exception will be thrown.
125 * If <code>throwableTypes</code> contain a checked exception then it has to
131 * If throwable is null then exception will be thrown.
165 * // if it isn't safe then you will have trouble stubbing it using this api. Use Mockito.doCallRealMethod() instead.
204 * //using 'then' alias:
205 * when(mock.foo()).then(returnCoolValu
217 OngoingStubbing<T> then(Answer<?> answer); method in interface:OngoingStubbing
[all...]
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
H A DCondition.java26 public final <U> Condition<U> then(Step<? super T, U> mapping) { return and(mapping); } method in class:Condition
/external/libvncserver/examples/
H A Dcamera.c58 static struct timeval now={0,0}, then={0,0}; local
64 dthen = then.tv_sec + (then.tv_usec/1000000.0);
68 memcpy((char *)&then, (char *)&now, sizeof(struct timeval));
/external/linux-kselftest/tools/testing/selftests/timers/
H A Dinconsistency-check.c98 long now, then; local
103 now = then = list[0].tv_sec;
109 while (seconds == -1 || now - then < seconds) {
/external/mockito/src/main/java/org/mockito/
H A DBDDMockito.java13 * Behavior Driven Development style of writing tests uses <b>//given //when //then</b> comments as fundamental parts of your test methods.
18 * The problem is that current stubbing api with canonical role of <b>when</b> word does not integrate nicely with <b>//given //when //then</b> comments.
37 * //then
50 * //then
59 * then(person).should(times(2)).ride(bike);
60 * then(person).shouldHaveNoMoreInteractions();
61 * then(police).shouldHaveZeroInteractions();
72 * then(person).should(inOrder).drive(car);
73 * then(person).should(inOrder, times(2)).ride(bike);
96 * See original {@link OngoingStubbing#then(Answe
214 public static <T> Then<T> then(T mock) { method in class:BDDMockito
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dcdtdptst.c201 UChar *pattern=NULL, *now=NULL, *then=NULL; local
218 else then=myDateFormat(format, date2);
219 log_verbose("%s\n", austrdup(then) );
376 if(initialState != TRUE) switchedState = TRUE; // if it wasn't the default of TRUE, then flip what we expect
/external/icu/icu4c/source/test/intltest/
H A Dastrotst.cpp153 UDate then = cal->getTime(status); local
154 CalendarAstronomer *myastro = new CalendarAstronomer(then);
/external/libvpx/libvpx/
H A Drate_hist.c82 int64_t then = 0; local
101 then = now;
107 then = hist->pts[i_idx];
108 if (now - then > cfg->rc_buf_sz) break;
112 if (now == then) return;
114 avg_bitrate = sum_sz * 8 * 1000 / (now - then);
/external/tensorflow/tensorflow/core/kernels/
H A Dcwise_op_select.cc42 const Tensor* then; variable
45 OP_REQUIRES_OK(ctx, ctx->input("t", &then));
49 ComputeScalar(ctx, cond, then, else_);
54 !TensorShapeUtils::IsVector(then->shape()));
57 ComputeBroadcasting(ctx, cond, then, else_);
59 ComputeElementwise(ctx, cond, then, else_);
65 const Tensor* then, const Tensor* else_) {
79 FastBoundsCheck(then->flat_outer_dims<T>().dimension(1),
84 OP_REQUIRES(ctx, TensorShapeUtils::IsVectorOrHigher(then->shape()),
86 "'then' mus
64 ComputeBroadcasting(OpKernelContext* ctx, const Tensor* cond, const Tensor* then, const Tensor* else_) argument
111 ComputeElementwise(OpKernelContext* ctx, const Tensor* cond, const Tensor* then, const Tensor* else_) argument
124 ComputeScalar(OpKernelContext* ctx, const Tensor* cond, const Tensor* then, const Tensor* else_) argument
[all...]
/external/v8/src/parsing/
H A Dpattern-rewriter.cc627 Block* then = factory()->NewBlock(nullptr, 2, true, nopos); local
628 then->statements()->Add(append_element, zone());
629 then->statements()->Add(unset_done, zone());
632 factory()->NewUnaryOperation(Token::NOT, result_done, nopos), then,
/external/mdnsresponder/mDNSCore/
H A DDNSDigest.c306 * has to be at lest 32 bit wide, if it's wider, then
1435 mDNSs32 then; local
1483 then = (mDNSs32)NToH32(utc48 + sizeof(mDNSu16));
1489 delta = (now > then) ? now - then : then - now;
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter5/
H A Dtoy.cpp58 if (IdentifierStr == "then") return tok_then;
142 /// IfExprAST - Expression class for if/then/else.
146 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
147 : Cond(cond), Then(then), Else(_else) {}
273 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
282 return Error("expected then");
283 getNextToken(); // eat the then
521 // Create blocks for the then and else cases. Insert the 'then' block at the
523 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp61 if (IdentifierStr == "then") return tok_then;
157 /// IfExprAST - Expression class for if/then/else.
161 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
162 : Cond(cond), Then(then), Else(_else) {}
301 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
310 return Error("expected then");
311 getNextToken(); // eat the then
625 // Create blocks for the then and else cases. Insert the 'then' block at the
627 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunctio
[all...]
/external/webrtc/webrtc/p2p/base/
H A Dturnserver.cc412 uint32_t then; local
413 char* p = reinterpret_cast<char*>(&then);
414 size_t len = rtc::hex_decode(p, sizeof(then),
415 nonce.substr(0, sizeof(then) * 2));
416 if (len != sizeof(then)) {
421 if (nonce.substr(sizeof(then) * 2) != rtc::ComputeHmac(
422 rtc::DIGEST_MD5, nonce_key_, std::string(p, sizeof(then)))) {
427 return rtc::TimeSince(then) < kNonceTimeout;
/external/clang/lib/AST/
H A DStmt.cpp767 Stmt *init, VarDecl *var, Expr *cond, Stmt *then,
774 SubExprs[THEN] = then;
766 IfStmt(const ASTContext &C, SourceLocation IL, bool IsConstexpr, Stmt *init, VarDecl *var, Expr *cond, Stmt *then, SourceLocation EL, Stmt *elsev) argument
/external/libpng/contrib/gregbook/
H A Drpng2-x.c593 * that the file is a PNG image), then loop through the file and continue
648 struct timeval now, then; local
651 if (gettimeofday(&then, NULL) == 0) {
652 then.tv_sec += loop_interval;
679 if (now.tv_sec < then.tv_sec ||
680 (now.tv_sec == then.tv_sec && now.tv_usec < then.tv_usec))
683 long seconds_to_go = then.tv_sec - now.tv_sec;
709 if (now.tv_sec >= then.tv_sec)
711 seconds_to_go = then
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp82 if (IdentifierStr == "then") return tok_then;
180 /// IfExprAST - Expression class for if/then/else.
184 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
185 : Cond(cond), Then(then), Else(_else) {}
337 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
346 return Error("expected then");
347 getNextToken(); // eat the then
747 // Create blocks for the then and else cases. Insert the 'then' block at the
749 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunctio
[all...]
H A Dtoy.cpp89 if (IdentifierStr == "then") return tok_then;
187 /// IfExprAST - Expression class for if/then/else.
191 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
192 : Cond(cond), Then(then), Else(_else) {}
344 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
353 return Error("expected then");
354 getNextToken(); // eat the then
1111 // Create blocks for the then and else cases. Insert the 'then' block at the
1113 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunctio
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dtoy.cpp108 if (IdentifierStr == "then") return tok_then;
206 /// IfExprAST - Expression class for if/then/else.
210 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
211 : Cond(cond), Then(then), Else(_else) {}
363 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
372 return Error("expected then");
373 getNextToken(); // eat the then
1189 // Create blocks for the then and else cases. Insert the 'then' block at the
1191 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunctio
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
H A Dtoy.cpp66 if (IdentifierStr == "then") return tok_then;
164 /// IfExprAST - Expression class for if/then/else.
168 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
169 : Cond(cond), Then(then), Else(_else) {}
321 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
330 return Error("expected then");
331 getNextToken(); // eat the then
969 // Create blocks for the then and else cases. Insert the 'then' block at the
971 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunctio
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp67 if (IdentifierStr == "then") return tok_then;
165 /// IfExprAST - Expression class for if/then/else.
169 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
170 : Cond(cond), Then(then), Else(_else) {}
322 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
331 return Error("expected then");
332 getNextToken(); // eat the then
729 // Create blocks for the then and else cases. Insert the 'then' block at the
731 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunctio
[all...]
H A Dtoy.cpp68 if (IdentifierStr == "then") return tok_then;
166 /// IfExprAST - Expression class for if/then/else.
170 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) argument
171 : Cond(cond), Then(then), Else(_else) {}
323 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
332 return Error("expected then");
333 getNextToken(); // eat the then
1009 // Create blocks for the then and else cases. Insert the 'then' block at the
1011 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunctio
[all...]

Completed in 2687 milliseconds

12