HomeSort by relevance Sort by last modified time
    Searched refs:answer (Results 26 - 50 of 444) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/mockito/src/org/mockito/internal/stubbing/
InvocationContainerImpl.java 16 import org.mockito.stubbing.Answer;
29 private final List<Answer> answersForStubbing = new ArrayList<Answer>();
48 public void addAnswer(Answer answer) {
50 addAnswer(answer, false);
53 public void addConsecutiveAnswer(Answer answer) {
54 addAnswer(answer, true);
57 public void addAnswer(Answer answer, boolean isConsecutive)
    [all...]
VoidMethodStubbableImpl.java 9 import org.mockito.stubbing.Answer;
31 public VoidMethodStubbable<T> toAnswer(Answer<?> answer) {
32 invocationContainerImpl.addAnswerForVoidMethod(answer);
  /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...]
  /external/mockito/src/org/mockito/internal/stubbing/answers/
CallsRealMethods.java 10 import org.mockito.stubbing.Answer;
13 * Optional Answer that adds partial mocking support
15 * {@link Answer} can be used to define the return values of unstubbed invocations.
32 public class CallsRealMethods implements Answer<Object>, Serializable {
35 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:CallsRealMethods
DoesNothing.java 10 import org.mockito.stubbing.Answer;
12 public class DoesNothing implements Answer<Object>, Serializable {
16 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:DoesNothing
ClonesArguments.java 10 import org.mockito.stubbing.Answer;
13 //TODO this needs documentation and further analysis - what if someone changes the answer?
15 public class ClonesArguments implements Answer<Object> {
16 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ClonesArguments
24 return new ReturnsEmptyValues().answer(invocation);
AnswerReturnValuesAdapter.java 11 import org.mockito.stubbing.Answer;
15 public class AnswerReturnValuesAdapter implements Answer<Object>, Serializable {
24 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:AnswerReturnValuesAdapter
  /external/mockito/src/org/mockito/stubbing/
DeprecatedOngoingStubbing.java 66 * Set a generic Answer for the stubbed method. E.g:
68 * stub(mock.someMethod(10)).toAnswer(new Answer&lt;Integer&gt;() {
69 * public Integer answer(InvocationOnMock invocation) throws Throwable {
75 * @param answer the custom answer to execute.
79 DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer);
VoidMethodStubbable.java 70 * Stubs a void method with generic {@link Answer}
75 * .toAnswer(new Answer() {
76 * public Object answer(InvocationOnMOck invocation) {
86 * @param answer the custom answer to execute.
90 VoidMethodStubbable<T> toAnswer(Answer<?> answer);
Stubber.java 32 * {@link Mockito#doAnswer(Answer)}
60 * {@link Mockito#doAnswer(Answer)}
103 * Use it for stubbing consecutive calls in {@link Mockito#doAnswer(Answer)} style:
109 * See javadoc for {@link Mockito#doAnswer(Answer)}
111 * @param answer to answer when the stubbed method is called
114 Stubber doAnswer(Answer answer);
  /external/webrtc/talk/session/media/
srtpfilter_unittest.cc 155 std::vector<CryptoParams> answer(MakeVector(kTestCryptoParams2));
159 answer[0].tag = 2;
160 answer[0].cipher_suite = CS_AES_CM_128_HMAC_SHA1_32;
163 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
169 std::vector<CryptoParams> offer, answer; local
171 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
177 std::vector<CryptoParams> answer; local
179 EXPECT_TRUE(f1_.SetAnswer(answer, CS_REMOTE));
186 std::vector<CryptoParams> answer(MakeVector(kTestCryptoParams2));
187 EXPECT_FALSE(f1_.SetAnswer(answer, CS_LOCAL))
437 std::vector<CryptoParams> answer; local
460 std::vector<CryptoParams> answer; local
    [all...]
  /external/mdnsresponder/mDNSPosix/
Identify.c 67 static volatile int StopNow; // 0 means running, 1 means stop because we got an answer, 2 means stop because of Ctrl-C
107 mDNSlocal void NameCallback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
113 if (answer->rrtype == kDNSType_PTR || answer->rrtype == kDNSType_CNAME)
115 ConvertDomainNameToCString(&answer->rdata->u.name, hostname);
117 mprintf("%##s %s %##s\n", answer->name->c, DNSTypeName(answer->rrtype), answer->rdata->u.name.c);
121 mDNSlocal void InfoCallback(mDNS *const m, DNSQuestion *question, const ResourceRecord *const answer, QC_result AddRecord)
126 if (answer->rrtype == kDNSType_A
    [all...]
  /cts/tests/tests/net/jni/
NativeDnsJni.c 33 struct addrinfo *answer; local
35 int res = getaddrinfo(node, service, NULL, &answer);
43 struct addrinfo *current = answer;
60 freeaddrinfo(answer);
61 answer = NULL;
69 res = getaddrinfo(node, service, NULL, &answer);
76 struct addrinfo *current = answer;
93 freeaddrinfo(answer);
94 answer = NULL;
  /ndk/sources/host-tools/make-3.81/tests/
run_make_tests.pl 77 # [2] (string): Answer we should get back.
84 local ($makestring, $options, $answer, $err_code) = @_;
115 # Do the same processing on $answer as we did on $makestring.
117 $answer && $answer !~ /\n$/s and $answer .= "\n";
118 $answer =~ s/#MAKEFILE#/$makefile/g;
119 $answer =~ s/#MAKEPATH#/$mkpath/g;
120 $answer =~ s/#MAKE#/$make_name/g;
121 $answer =~ s/#PWD#/$pwd/g
    [all...]
  /external/easymock/src/org/easymock/
IExpectationSetters.java 46 * Sets an object that will be used to calculate the answer for the expected
49 * @param answer
50 * the object used to answer the invocation.
53 IExpectationSetters<T> andAnswer(IAnswer<? extends T> answer);
57 * method call will be delegated to it with the actual arguments. The answer
58 * returned by this call will then be the answer returned by the mock
85 * Sets a stub object that will be used to calculate the answer for the
88 * @param answer
89 * the object used to answer the invocation.
91 void andStubAnswer(IAnswer<? extends T> answer);
    [all...]
  /external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
ReturnsMocks.java 12 import org.mockito.stubbing.Answer;
14 public class ReturnsMocks implements Answer<Object>, Serializable {
18 private Answer<Object> delegate = new ReturnsMoreEmptyValues();
20 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsMocks
21 Object ret = delegate.answer(invocation);
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);
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...]
  /libcore/ojluni/src/main/java/java/lang/
Double.java 291 StringBuffer answer = new StringBuffer(24); local
294 answer.append("-"); // so append sign info
296 answer.append("0x");
301 answer.append("0.0p0");
315 answer.append(subnormal ? "0." : "1.");
322 answer.append(signif.equals("0000000000000") ? // 13 zeros
330 answer.append("p" + (subnormal ?
334 return answer.toString();
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/protocols/
talkd.h 62 u_char answer; /* not used */ member in struct:__anon37930
81 u_char answer; /* response to request message, see below */ member in struct:__anon37931
95 /* answer values */
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/protocols/
talkd.h 62 u_char answer; /* not used */ member in struct:__anon39903
81 u_char answer; /* response to request message, see below */ member in struct:__anon39904
95 /* answer values */
  /external/easymock/src/org/easymock/internal/
ReplayState.java 59 return result.answer();
103 public void andAnswer(IAnswer<?> answer) {
107 public void andDelegateTo(Object answer) {
119 public void andStubAnswer(IAnswer<?> answer) {
  /external/jmdns/src/javax/jmdns/impl/tasks/state/
Canceler.java 104 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) {
105 newOut = this.addAnswer(newOut, null, answer);
117 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) {
118 newOut = this.addAnswer(newOut, null, answer);
  /external/mockito/src/org/mockito/
Mock.java 29 * &#064;Mock(answer = RETURNS_MOCKS) private UserProvider userProvider;
66 Answers answer() default Answers.RETURNS_DEFAULTS;
  /hardware/libhardware/include/hardware/
qemud.h 68 char answer[2]; local
93 /* read answer from daemon */
94 if (qemud_fd_read(fd, answer, 2) != 2 ||
95 answer[0] != 'O' || answer[1] != 'K') {

Completed in 3809 milliseconds

12 3 4 5 6 7 8 91011>>