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

1 2 3 4

  /external/chromium_org/tools/gyp/test/win/lib-flags/
answer.cc 5 #include "answer.h"
7 int answer() { function
  /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];
  /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
  /external/chromium_org/sandbox/win/src/
handle_interception.cc 28 CrossCallReturn answer = {0}; local
31 desired_access, options, &answer);
35 if (answer.win32_result) {
36 ::SetLastError(answer.win32_result);
40 *target_handle = answer.handle;
named_pipe_interception.cc 52 CrossCallReturn answer = {0}; local
56 default_timeout, &answer);
60 ::SetLastError(answer.win32_result);
62 if (ERROR_SUCCESS != answer.win32_result)
65 return answer.handle;
registry_interception.cc 60 CrossCallReturn answer = {0}; local
64 create_options, &answer);
71 if (!NT_SUCCESS(answer.nt_status))
72 // TODO(nsylvain): We should return answer.nt_status here instead
81 *key = answer.handle;
84 *disposition = answer.extended[0].unsigned_int;
86 status = answer.nt_status;
119 CrossCallReturn answer = {0}; local
121 root_directory, desired_access, &answer);
128 if (!NT_SUCCESS(answer.nt_status)
    [all...]
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/mockito/src/org/mockito/stubbing/
Answer.java 10 * Generic interface to be used for configuring mock's answer.
11 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
13 * Example of stubbing a mock with custom answer:
16 * when(mock.someMethod(anyString())).thenAnswer(new Answer() {
17 * Object answer(InvocationOnMock invocation) {
30 public interface Answer<T> {
38 T answer(InvocationOnMock invocation) throws Throwable; method in interface:Answer
  /external/mockito/src/org/mockito/internal/stubbing/answers/
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
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
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);
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
ReturnsElementsOf.java 9 import org.mockito.stubbing.Answer;
33 public class ReturnsElementsOf implements Answer<Object> {
45 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsElementsOf
Returns.java 10 import org.mockito.stubbing.Answer;
12 public class Returns implements Answer<Object>, Serializable {
21 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:Returns
ThrowsException.java 10 import org.mockito.stubbing.Answer;
14 public class ThrowsException implements Answer<Object>, Serializable {
24 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ThrowsException
ThrowsExceptionClass.java 10 import org.mockito.stubbing.Answer;
15 public class ThrowsExceptionClass implements Answer<Object>, Serializable {
25 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ThrowsExceptionClass
  /external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
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
GloballyConfiguredAnswer.java 12 import org.mockito.stubbing.Answer;
15 * Globally configured Answer.
19 public class GloballyConfiguredAnswer implements Answer<Object>, Serializable {
23 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:GloballyConfiguredAnswer
24 return new GlobalConfiguration().getDefaultAnswer().answer(invocation);
ReturnsEmptyValues.java 13 import org.mockito.stubbing.Answer;
32 * Default answer of every Mockito mock.
54 public class ReturnsEmptyValues implements Answer<Object>, Serializable {
61 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)
63 public Object answer(InvocationOnMock invocation) { method in class:ReturnsEmptyValues
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...]
  /external/chromium_org/v8/test/mjsunit/
unicodelctest-no-optimization.js 34 var answer = get_answer(); variable
40 assertTrue(!!re.test(s) == !!answer[i]);
52 for (var i = 0x10000; i < 0x110000 && i < answer.length + 256; i++) {
54 assertTrue(!!re.test(BuildSurrogatePair(c)) == !!answer[i]);
    [all...]
unicodelctest.js 33 var answer = get_answer(); variable
39 assertTrue(!!re.test(s) == !!answer[i]);
51 for (var i = 0x10000; i < 0x110000 && i < answer.length + 256; i++) {
53 assertTrue(!!re.test(BuildSurrogatePair(c)) == !!answer[i]);
    [all...]
  /bionic/libc/arch-mips/string/
mips_strlen.c 150 static char answer[1024]; local
152 sprintf (answer, "new_strlen=%d: lib_strlen=%d: %s!", mine, libs, result);
155 return answer;

Completed in 548 milliseconds

1 2 3 4