Home
last modified time | relevance | path

Searched refs:andReturn (Results 1 – 25 of 34) sorted by relevance

12

/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletPipelineRequestDispatcherTest.java74 expect(requestMock.getAttribute(A_KEY)).andReturn(A_VALUE); in testIncludeManagedServlet()
93 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testIncludeManagedServlet()
94 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in testIncludeManagedServlet()
95 expect(injector.getInstance(HTTP_SERLVET_KEY)).andReturn(mockServlet); in testIncludeManagedServlet()
101 .andReturn(ImmutableList.<Binding<ServletDefinition>>of(mockBinding)); in testIncludeManagedServlet()
103 expect(mockBinding.getProvider()).andReturn(bindingProvider); in testIncludeManagedServlet()
135 expect(requestMock.getAttribute(A_KEY)).andReturn(A_VALUE); in testForwardToManagedServlet()
140 expect(mockResponse.isCommitted()).andReturn(false); in testForwardToManagedServlet()
159 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testForwardToManagedServlet()
160 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in testForwardToManagedServlet()
[all …]
DFilterDefinitionTest.java43 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testFilterInitAndConfig()
44 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testFilterInitAndConfig()
46 expect(injector.getInstance(Key.get(Filter.class))).andReturn(mockFilter).anyTimes(); in testFilterInitAndConfig()
60 expect(servletContext.getServletContextName()).andReturn(contextName); in testFilterInitAndConfig()
97 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testFilterCreateDispatchDestroy()
98 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testFilterCreateDispatchDestroy()
100 expect(injector.getInstance(Key.get(Filter.class))).andReturn(mockFilter).anyTimes(); in testFilterCreateDispatchDestroy()
102 expect(request.getRequestURI()).andReturn("/index.html"); in testFilterCreateDispatchDestroy()
103 expect(request.getContextPath()).andReturn("").anyTimes(); in testFilterCreateDispatchDestroy()
160 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testFilterCreateDispatchDestroySupressChain()
[all …]
DServletDefinitionPathsTest.java69 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in servletPath()
70 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in servletPath()
75 .andReturn( in servletPath()
92 expect(request.getServletPath()).andReturn(requestPath); in servletPath()
159 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in pathInfoWithServletStyleMatching()
160 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in pathInfoWithServletStyleMatching()
165 .andReturn( in pathInfoWithServletStyleMatching()
193 expect(request.getRequestURI()).andReturn(requestUri); in pathInfoWithServletStyleMatching()
195 expect(request.getServletPath()).andReturn(servletPath).anyTimes(); in pathInfoWithServletStyleMatching()
197 expect(request.getContextPath()).andReturn(contextPath); in pathInfoWithServletStyleMatching()
[all …]
DContextPathTest.java90 .andReturn(injector) in setUp()
92 expect(filterConfig.getServletContext()).andReturn(servletContext).anyTimes(); in setUp()
125 expect(req.getMethod()).andReturn("GET").anyTimes(); in testSimple()
126 expect(req.getRequestURI()).andReturn("/bar/foo").anyTimes(); in testSimple()
127 expect(req.getServletPath()).andReturn("/bar/foo").anyTimes(); in testSimple()
128 expect(req.getContextPath()).andReturn("").anyTimes(); in testSimple()
254 expect(req.getMethod()).andReturn("GET").anyTimes(); in runTest()
255 expect(req.getRequestURI()).andReturn(requestURI).anyTimes(); in runTest()
256 expect(req.getServletPath()).andReturn(servletPath).anyTimes(); in runTest()
257 expect(req.getContextPath()).andReturn(contextPath).anyTimes(); in runTest()
DContinuingRequestIntegrationTest.java127 expect(filterConfig.getServletContext()).andReturn(createMock(ServletContext.class)); in testRequestContinuesInOtherThread()
133 expect(request.getRequestURI()).andReturn("/"); in testRequestContinuesInOtherThread()
134 expect(request.getContextPath()).andReturn("").anyTimes(); in testRequestContinuesInOtherThread()
135 expect(request.getMethod()).andReturn("GET"); in testRequestContinuesInOtherThread()
136 expect(request.getCookies()).andReturn(new Cookie[0]); in testRequestContinuesInOtherThread()
139 expect(request.getParameter(PARAM_NAME)).andReturn(PARAM_VALUE); in testRequestContinuesInOtherThread()
171 expect(filterConfig.getServletContext()).andReturn(createMock(ServletContext.class)); in testRequestContinuationDiesInHttpRequestThread()
177 expect(request.getRequestURI()).andReturn("/"); in testRequestContinuationDiesInHttpRequestThread()
178 expect(request.getContextPath()).andReturn("").anyTimes(); in testRequestContinuationDiesInHttpRequestThread()
180 expect(request.getMethod()).andReturn("GET"); in testRequestContinuationDiesInHttpRequestThread()
[all …]
DServletDispatchIntegrationTest.java86 expect(requestMock.getRequestURI()).andReturn("/index.html").times(1); in testDispatchRequestToManagedPipelineServlets()
87 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipelineServlets()
135 expect(requestMock.getRequestURI()).andReturn("/index.html").times(2); in testDispatchRequestToManagedPipelineWithFilter()
136 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipelineWithFilter()
260 expect(requestMock.getRequestURI()).andReturn("/").anyTimes(); in testForwardUsingRequestDispatcher()
261 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testForwardUsingRequestDispatcher()
264 expect(requestMock.getAttribute(REQUEST_DISPATCHER_REQUEST)).andReturn(true); in testForwardUsingRequestDispatcher()
267 expect(responseMock.isCommitted()).andReturn(false); in testForwardUsingRequestDispatcher()
298 expect(requestMock.getRequestURI()).andReturn("/index.html?query=params").atLeastOnce(); in testQueryInRequestUri_regex()
299 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testQueryInRequestUri_regex()
[all …]
DServletDefinitionTest.java53 expect(binding.acceptScopingVisitor((BindingScopingVisitor) anyObject())).andReturn(true); in testServletInitAndConfig()
54 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in testServletInitAndConfig()
56 expect(injector.getInstance(Key.get(HttpServlet.class))).andReturn(mockServlet).anyTimes(); in testServletInitAndConfig()
78 expect(servletContext.getServletContextName()).andReturn(contextName); in testServletInitAndConfig()
118 expect(servletRequest.getContextPath()).andReturn("/a_context_path"); in testServiceWithContextPath()
119 expect(servletRequest.getRequestURI()).andReturn("/test.html"); in testServiceWithContextPath()
DVarargsFilterDispatchIntegrationTest.java63 expect(requestMock.getRequestURI()).andReturn("/index.html").anyTimes(); in testDispatchRequestToManagedPipeline()
64 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipeline()
105 expect(requestMock.getRequestURI()).andReturn("/index.xhtml").anyTimes(); in testDispatchThatNoFiltersFire()
106 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchThatNoFiltersFire()
148 expect(requestMock.getRequestURI()).andReturn("/index").anyTimes(); in testDispatchFilterPipelineWithRegexMatching()
149 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchFilterPipelineWithRegexMatching()
DVarargsServletDispatchIntegrationTest.java81 expect(requestMock.getRequestURI()).andReturn("/index.html").times(1); in testDispatchRequestToManagedPipelineServlets()
82 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipelineServlets()
124 expect(requestMock.getRequestURI()).andReturn("/index.html").times(3); in testVarargsSkipDispatchRequestToManagedPipelineServlets()
125 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testVarargsSkipDispatchRequestToManagedPipelineServlets()
169 expect(requestMock.getRequestURI()).andReturn("/index.html").times(2); in testDispatchRequestToManagedPipelineWithFilter()
170 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipelineWithFilter()
DInjectedFilterPipelineTest.java87 expect(filterConfig.getServletContext()).andReturn(servletContext).once(); in testDispatchThruInjectedGuiceFilter()
90 .andReturn("/non-jsp/login.html") // use a path that will fail in injector2 in testDispatchThruInjectedGuiceFilter()
92 expect(request.getContextPath()).andReturn("").anyTimes(); in testDispatchThruInjectedGuiceFilter()
118 expect(filterConfig.getServletContext()).andReturn(servletContext).once(); in testDispatchThruInjectedGuiceFilter()
120 .andReturn("/public/login/login.jsp") // use a path that will fail in injector1 in testDispatchThruInjectedGuiceFilter()
122 expect(request.getContextPath()).andReturn("").anyTimes(); in testDispatchThruInjectedGuiceFilter()
DFilterDispatchIntegrationTest.java93 expect(requestMock.getRequestURI()).andReturn("/index.html").anyTimes(); in testDispatchRequestToManagedPipeline()
94 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipeline()
100 expect(responseMock.isCommitted()).andReturn(false).anyTimes(); in testDispatchRequestToManagedPipeline()
151 expect(requestMock.getRequestURI()).andReturn("/index.xhtml").anyTimes(); in testDispatchThatNoFiltersFire()
152 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchThatNoFiltersFire()
195 expect(requestMock.getRequestURI()).andReturn("/index").anyTimes(); in testDispatchFilterPipelineWithRegexMatching()
196 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchFilterPipelineWithRegexMatching()
267 expect(requestMock.getRequestURI()).andReturn(value).anyTimes(); in runRequestForPath()
268 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in runRequestForPath()
DFilterPipelineTest.java69 expect(filterConfig.getServletContext()).andReturn(servletContext).once(); in testDispatchThruGuiceFilter()
71 expect(request.getRequestURI()).andReturn("/public/login.jsp").anyTimes(); in testDispatchThruGuiceFilter()
72 expect(request.getContextPath()).andReturn("").anyTimes(); in testDispatchThruGuiceFilter()
DServletUtilsTest.java54 expect(mock.getContextPath()).andReturn(contextPath); in getContextRelativePath()
55 expect(mock.getRequestURI()).andReturn(requestPath); in getContextRelativePath()
DMultiModuleDispatchIntegrationTest.java73 expect(requestMock.getRequestURI()).andReturn("/index.html").anyTimes(); in testDispatchRequestToManagedPipeline()
74 expect(requestMock.getContextPath()).andReturn("").anyTimes(); in testDispatchRequestToManagedPipeline()
/external/webrtc/sdk/objc/unittests/
DRTCMTLVideoView_xctest.m74 .andReturn([[RTC_OBJC_TYPE(RTCCVPixelBuffer) alloc] initWithPixelBuffer:pixelBufferRef]);
77 .andReturn([[RTC_OBJC_TYPE(RTCI420Buffer) alloc] initWithWidth:200 height:200]);
79 OCMStub([frameMock timeStampNs]).andReturn(arc4random_uniform(INT_MAX));
85 OCMStub([rendererMock addRenderingDestination:[OCMArg any]]).andReturn(success);
91 [[[self.classMock stub] andReturn:nil] createMetalView:CGRectZero];
98 OCMStub([self.classMock isMetalAvailable]).andReturn(NO);
115 OCMStub([self.classMock isMetalAvailable]).andReturn(YES);
136 OCMStub([self.classMock isMetalAvailable]).andReturn(YES);
141 OCMExpect([self.classMock createI420Renderer]).andReturn(self.rendererI420Mock);
158 OCMStub([self.classMock isMetalAvailable]).andReturn(YES);
[all …]
DRTCCameraVideoCapturerTests.mm96 OCMStub([self.captureSessionMock canAddOutput:[OCMArg any]]).andReturn(YES);
151 OCMStub([validFormat1 formatDescription]).andReturn(format);
156 OCMStub([validFormat2 formatDescription]).andReturn(format);
161 OCMStub([invalidFormat formatDescription]).andReturn(format);
164 OCMStub([self.deviceMock formats]).andReturn(formats);
239 andReturn(inputPortsArrayMock);
240 OCMStub(captureInputPort.input).andReturn(inputPortMock);
241 OCMStub(inputPortMock.device).andReturn(captureDeviceMock);
242 OCMStub(captureDeviceMock.position).andReturn(camera);
298 andReturn(inputPortsArrayMock);
[all …]
DRTCPeerConnectionFactoryBuilderTest.mm42 OCMExpect([factoryMock alloc]).andReturn(factoryMock);
44 RTC_UNUSED([[[factoryMock expect] andReturn:factoryMock] initWithNoMedia]);
46 RTC_UNUSED([[[[factoryMock expect] andReturn:factoryMock] ignoringNonObjectArgs]
63 OCMExpect([factoryMock alloc]).andReturn(factoryMock);
65 RTC_UNUSED([[[factoryMock expect] andReturn:factoryMock] initWithNoMedia]);
67 RTC_UNUSED([[[[factoryMock expect] andReturn:factoryMock] ignoringNonObjectArgs]
Dobjc_video_encoder_factory_tests.mm31 .andReturn(return_code);
33 .andReturn(return_code);
34 OCMStub([encoderMock releaseEncoder]).andReturn(return_code);
35 OCMStub([encoderMock setBitrate:0 framerate:0]).andReturn(return_code);
40 OCMStub([encoderFactoryMock supportedCodecs]).andReturn(@[ supported ]);
41 OCMStub([encoderFactoryMock implementations]).andReturn(@[ supported ]);
42 OCMStub([encoderFactoryMock createEncoder:[OCMArg any]]).andReturn(encoderMock);
Davformatmappertests.mm117 OCMStub([mockDevice formats]).andReturn(@[ mock ]);
134 OCMStub([mockDevice formats]).andReturn(@[ mock ]);
150 OCMStub([mockDevice formats]).andReturn(@[ mock ]);
177 OCMStub([mockDevice lockForConfiguration:[OCMArg setTo:nil]]).andReturn(YES);
180 OCMStub([mockDevice formats]).andReturn(array);
201 [[[mockDevice stub] andReturn:@[]] formats];
214 OCMStub([mockDevice formats]).andReturn(@[]);
215 OCMStub([mockDevice lockForConfiguration:[OCMArg setTo:nil]]).andReturn(YES);
Dobjc_video_decoder_factory_tests.mm26 OCMStub([decoderMock startDecodeWithNumberOfCores:1]).andReturn(return_code);
31 .andReturn(return_code);
32 OCMStub([decoderMock releaseDecoder]).andReturn(return_code);
37 OCMStub([decoderFactoryMock supportedCodecs]).andReturn(@[ supported ]);
38 OCMStub([decoderFactoryMock createDecoder:[OCMArg any]]).andReturn(decoderMock);
/external/deqp/android/cts/runner/tests/src/com/drawelements/deqp/runner/
DDeqpTestRunnerTest.java225 .andReturn(Integer.toString(version)).atLeastOnce(); in testGlesVersion()
232 andReturn("").once(); in testGlesVersion()
234 andReturn("").once(); in testGlesVersion()
236 andReturn("").once(); in testGlesVersion()
238 andReturn("").once(); in testGlesVersion()
367 .andReturn(Integer.toString(version)).atLeastOnce(); in testResultCode()
386 andReturn("").once(); in testResultCode()
388 andReturn("").once(); in testResultCode()
390 andReturn("").once(); in testResultCode()
392 andReturn("").once(); in testResultCode()
[all …]
/external/webrtc/examples/objc/AppRTCMobile/tests/
DARDSettingsModel_xctest.mm32 [[[partialMock stub] andReturn:storeMock] settingsStore];
33 [[[partialMock stub] andReturn:@[ @"640x480", @"960x540", @"1280x720" ]]
45 [[[storeMock expect] andReturn:@"640x480"] videoResolution];
53 [([[storeMock stub] andReturn:@"960x480"])videoResolution];
59 [([[storeMock stub] andReturn:@"1270x480"])videoResolution];
67 [([[storeMock stub] andReturn:@"960x540"])videoResolution];
75 [([[storeMock stub] andReturn:@"invalid"])videoResolution];
/external/easymock/src/org/easymock/
DMockControl.java186 .andReturn(value).once(); in setReturnValue()
245 .andReturn(value).times(times); in setReturnValue()
264 .andReturn(value); in setReturnValue()
408 .andReturn(value).times(minCount, maxCount); in setReturnValue()
468 EasyMock.expectLastCall().andReturn(value).once(); in expectAndReturn()
490 .andReturn(value); in expectAndReturn()
512 EasyMock.expectLastCall().andReturn(value).times(count); in expectAndReturn()
534 EasyMock.expectLastCall().andReturn(value).times(min, max); in expectAndReturn()
/external/easymock/src/org/easymock/internal/
DIMocksControlState.java26 void andReturn(Object value); in andReturn() method
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DServiceTest.java157 EasyMock.same(FooResponse.getDefaultInstance()))).andReturn(fooResponse); in testBlockingStub()
162 EasyMock.same(BarResponse.getDefaultInstance()))).andReturn(barResponse); in testBlockingStub()
212 .andReturn(expectedResponse); in testNewReflectiveBlockingService()

12