/external/llvm/test/YAMLParser/ |
construct-bool.data | 4 answer: NO
|
/external/mockito/src/org/mockito/internal/stubbing/ |
VoidMethodStubbableImpl.java | 9 import org.mockito.stubbing.Answer;
31 public VoidMethodStubbable<T> toAnswer(Answer<?> answer) {
32 invocationContainerImpl.addAnswerForVoidMethod(answer);
|
StubberImpl.java | 10 import org.mockito.stubbing.Answer;
19 final List<Answer> answers = new LinkedList<Answer>();
57 public Stubber doAnswer(Answer answer) {
58 answers.add(answer);
|
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/ |
Answers.java | 9 import org.mockito.stubbing.Answer;
30 private Answer<Object> implementation;
32 private Answers(Answer<Object> implementation) {
36 public Answer<Object> get() {
|
ForwardsInvocations.java | 8 import org.mockito.stubbing.Answer; 14 * Internal answer to forward invocations on a real instance. 18 public class ForwardsInvocations implements Answer<Object>, Serializable { 28 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ForwardsInvocations
|
ReturnsSmartNulls.java | 16 import org.mockito.stubbing.Answer;
19 * Optional Answer that can be used with
20 * {@link Mockito#mock(Class, Answer)}
25 * Answer returns SmartNulls instead of nulls.
36 public class ReturnsSmartNulls implements Answer<Object>, Serializable {
40 private final Answer<Object> delegate = new ReturnsMoreEmptyValues();
42 public Object answer(final InvocationOnMock invocation) throws Throwable {
method in class:ReturnsSmartNulls 43 Object defaultReturnValue = delegate.answer(invocation);
55 private static class ThrowsSmartNullPointer implements Answer {
64 public Object answer(InvocationOnMock currentInvocation) throws Throwable { method in class:ReturnsSmartNulls.ThrowsSmartNullPointer [all...] |
ReturnsMoreEmptyValues.java | 13 import org.mockito.stubbing.Answer; 48 public class ReturnsMoreEmptyValues implements Answer<Object>, Serializable { 51 private Answer<Object> delegate = new ReturnsEmptyValues(); 54 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock) 56 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsMoreEmptyValues 57 Object ret = delegate.answer(invocation);
|
/external/valgrind/main/none/tests/ |
floored.c | 9 printf ( "the answer is %d\n", xToI () );
|
/ndk/sources/host-tools/make-3.81/tests/scripts/functions/ |
addsuffix | 24 $answer = "src${pathsep}a.b.z.foo.c hacks.c\n"; 25 &compare_output($answer,&get_logfile(1)); 31 $answer = "\n"; 32 &compare_output($answer,&get_logfile(1));
|
eval | 29 # Create the answer to what should be produced by this Makefile 30 $answer = "AA\nBA\n"; 32 &compare_output($answer,&get_logfile(1)); 55 # Create the answer to what should be produced by this Makefile 56 $answer = "A = A B = B\n"; 58 &compare_output($answer,&get_logfile(1)); 84 $answer = "it\n"; 85 &compare_output($answer,&get_logfile(1)); 88 $answer = "it\nworked\n"; 89 &compare_output($answer,&get_logfile(1)) [all...] |
/ndk/sources/host-tools/make-3.81/tests/scripts/targets/ |
INTERMEDIATE | 39 $answer = "cp foo.f foo.e\ncp foo.e foo.d\nrm foo.e\n"; 40 &compare_output($answer, &get_logfile(1)); 45 $answer = "$make_name: `foo.d' is up to date.\n"; 46 &compare_output($answer, &get_logfile(1)); 54 $answer = "cp foo.f foo.e\ncp foo.e foo.d\nrm foo.e\n"; 55 &compare_output($answer, &get_logfile(1)); 60 $answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\nrm bar.e foo.e\n"; 61 &compare_output($answer, &get_logfile(1)); 66 $answer = "$make_name: `foo.c' is up to date.\n"; 67 &compare_output($answer, &get_logfile(1)) [all...] |
SECONDARY | 39 $answer = "cp foo.f foo.e\ncp foo.e foo.d\n"; 40 &compare_output($answer, &get_logfile(1)); 47 $answer = "$make_name: `foo.d' is up to date.\n"; 48 &compare_output($answer, &get_logfile(1)); 56 $answer = "cp foo.f foo.e\ncp foo.e foo.d\n"; 57 &compare_output($answer, &get_logfile(1)); 62 $answer = "cp foo.e foo.c\n"; 63 &compare_output($answer, &get_logfile(1)); 70 $answer = "$make_name: `foo.c' is up to date.\n"; 71 &compare_output($answer, &get_logfile(1)) [all...] |
/external/chromium_org/v8/test/mjsunit/ |
mod.js | 30 var answer = 1; 32 if (answer == i) answer = 0; 34 print(j + " % " + i + " = " + answer); 36 assertEquals(answer, m, j + " % " + i); 38 assertEquals(answer, m, j + " % -" + i); 41 assertEquals(-answer, m, j + " % " + i); 43 if (answer == 0) assertEquals(-Infinity, 1/m); 45 assertEquals(-answer, m, j + " % -" + i); 47 if (answer == 0) assertEquals(-Infinity, 1/m) [all...] |
/external/v8/test/mjsunit/ |
mod.js | 30 var answer = 1; 32 if (answer == i) answer = 0; 34 print(j + " % " + i + " = " + answer); 36 assertEquals(answer, m, j + " % " + i); 38 assertEquals(answer, m, j + " % -" + i); 41 assertEquals(-answer, m, j + " % " + i); 43 if (answer == 0) assertEquals(-Infinity, 1/m); 45 assertEquals(-answer, m, j + " % -" + i); 47 if (answer == 0) assertEquals(-Infinity, 1/m) [all...] |
/ndk/sources/host-tools/make-3.81/tests/scripts/options/ |
dash-f | 38 # Create the answer to what should be produced by this Makefile 39 $answer = "This is the output from the original makefile\n"; 44 &compare_output($answer,&get_logfile(1)); 48 $answer = "This is the output from makefile 2\n"; 52 &compare_output($answer,&get_logfile(1)); 57 $answer = "This is the output from makefile 3\n"; 62 &compare_output($answer,&get_logfile(1)); 68 $answer = "This is the output from makefile 2\n"; 69 $answer .= "This is the output from the original makefile\n"; 70 $answer .= "This is the output from makefile 3\n" [all...] |
dash-e | 20 $answer = "boggle\n"; 22 &compare_output($answer,&get_logfile(1));
|
dash-I | 43 # Create the answer to what should be produced by this Makefile 44 $answer = "There should be no errors for this makefile.\n"; 45 &compare_output($answer,&get_logfile(1)); 48 $answer = "This is another included makefile\n"; 50 &compare_output($answer,&get_logfile(1)); 53 $answer = "$mkpath ANOTHER -f $makefile 59 &compare_output($answer,&get_logfile(1));
|
/external/chromium_org/native_client_sdk/src/examples/tutorial/dlopen/ |
eightball.cc | 12 const char* answer[NSIDES] = { "YES", "NO", "MAYBE", "MAYBE NOT", local 15 return answer[rand() % NSIDES];
|
/ndk/sources/host-tools/make-3.81/tests/scripts/variables/ |
CURDIR | 16 $answer = "$pwd\n"; 17 &compare_output($answer,&get_logfile(1));
|
/external/mockito/src/org/mockito/ |
Answers.java | 12 import org.mockito.stubbing.Answer;
21 * @Mock(answer = RETURNS_DEEP_STUBS) UserProvider userProvider;
28 * The default configured answer of every mock.
37 * An answer that returns smart-nulls.
46 * An answer that returns <strong>mocks</strong> (not stubs).
56 * An answer that returns <strong>deep stubs</strong> (not mocks).
65 * An answer that calls the real methods (used for partial mocks).
74 private Answer<Object> implementation;
76 private Answers(Answer<Object> implementation) {
80 public Answer<Object> get() { [all...] |
AdditionalAnswers.java | 10 import org.mockito.stubbing.Answer; 34 * This additional answer could be used at stub time using the 35 * <code>then|do|will{@link org.mockito.stubbing.Answer}</code> methods. For example : 42 * @return Answer that will return the first argument of the invocation. 46 public static <T> Answer<T> returnsFirstArg() { 47 return (Answer<T>) RETURNS_FIRST_ARGUMENT; 54 * This additional answer could be used at stub time using the 55 * <code>then|do|will{@link org.mockito.stubbing.Answer}</code> methods. For example : 62 * @return Answer that will return the second argument of the invocation. 66 public static <T> Answer<T> returnsSecondArg() [all...] |
/external/chromium_org/sandbox/win/src/ |
sync_interception.cc | 22 CrossCallReturn* answer) { 31 initial_state, answer); 38 CrossCallReturn* answer) { 48 answer); 88 CrossCallReturn answer = {0}; local 89 answer.nt_status = status; 91 &answer); 95 status = answer.nt_status; 99 *event_handle = answer.handle; 141 CrossCallReturn answer = {0} local [all...] |
/external/easymock/src/org/easymock/internal/ |
Result.java | 41 public Object answer() throws Throwable {
method in class:Result.ThrowingAnswer 47 return "Answer throwing " + throwable;
58 public Object answer() throws Throwable {
method in class:Result.ReturningAnswer 64 return "Answer returning " + value;
75 public Object answer() throws Throwable {
method in class:Result.DelegatingAnswer 98 public static Result createAnswerResult(IAnswer<?> answer) {
99 return new Result(answer, false);
102 public Object answer() throws Throwable {
method in class:Result 103 return value.answer();
|
/ndk/sources/host-tools/make-3.81/tests/scripts/features/ |
targetvars | 64 $answer = "one bar\nfoo two\nBAR=1000\nfoo bar\n"; 65 &compare_output($answer,&get_logfile(1)); 70 $answer = "one 2\n1 2\n"; 71 &compare_output($answer,&get_logfile(1)); 76 $answer = "x ok ok\n"; 77 &compare_output($answer,&get_logfile(1)); 82 $answer = "eight: seven eight\nseven: seven seven\n"; 83 &compare_output($answer,&get_logfile(1)); 88 $answer = "wallace bar wallace bar\n"; 89 &compare_output($answer,&get_logfile(1)) [all...] |
/external/easymock/src/org/easymock/ |
IAnswer.java | 19 * Used to answer expected calls.
24 * is called by EasyMock to answer an expected call.
25 * The answer may be to return a value, or to throw an exception.
26 * The arguments of the call for which the answer is generated
33 T answer() throws Throwable;
method in interface:IAnswer
|