Home
last modified time | relevance | path

Searched refs:expected_response (Results 1 – 12 of 12) sorted by relevance

/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_rpc_part_2_test.py56 expected_response = self._handler.handle_unary_unary(request, None)
63 self.assertEqual(expected_response, response)
67 expected_response = self._handler.handle_unary_unary(request, None)
75 self.assertEqual(expected_response, response)
81 expected_response = self._handler.handle_unary_unary(request, None)
91 self.assertEqual(expected_response, response)
111 expected_response = self._handler.handle_stream_unary(
121 self.assertEqual(expected_response, response)
126 expected_response = self._handler.handle_stream_unary(
137 self.assertEqual(expected_response, response)
[all …]
D_rpc_test.py272 expected_response = self._handler.handle_unary_unary(request, None)
279 self.assertEqual(expected_response, response)
283 expected_response = self._handler.handle_unary_unary(request, None)
291 self.assertEqual(expected_response, response)
297 expected_response = self._handler.handle_unary_unary(request, None)
307 self.assertEqual(expected_response, response)
327 expected_response = self._handler.handle_stream_unary(
337 self.assertEqual(expected_response, response)
342 expected_response = self._handler.handle_stream_unary(
353 self.assertEqual(expected_response, response)
[all …]
/third_party/grpc/src/python/grpcio_tests/tests/protoc_plugin/
D_python_plugin_test.py257 expected_response = service.servicer_methods.UnaryCall(
259 self.assertEqual(expected_response, response)
269 expected_response = service.servicer_methods.UnaryCall(
271 self.assertEqual(expected_response, response)
312 for expected_response, response in moves.zip_longest(
314 self.assertEqual(expected_response, response)
356 expected_response = service.servicer_methods.StreamingInputCall(
358 self.assertEqual(expected_response, response)
367 expected_response = service.servicer_methods.StreamingInputCall(
369 self.assertEqual(expected_response, response)
[all …]
Dbeta_python_plugin_test.py375 expected_response = methods.UnaryCall(request, 'not a real context!')
376 self.assertEqual(expected_response, response)
389 expected_response = methods.UnaryCall(request, 'not a real RpcContext!')
390 self.assertEqual(expected_response, response)
436 for expected_response, response in moves.zip_longest(
438 self.assertEqual(expected_response, response)
486 expected_response = methods.StreamingInputCall(
490 self.assertEqual(expected_response, response)
503 expected_response = methods.StreamingInputCall(
507 self.assertEqual(expected_response, response)
[all …]
/third_party/python/Lib/test/
Dtest_urllib2_localnet.py506 expected_response = b"We got here..."
510 (200, [], expected_response)
515 self.assertEqual(data, expected_response)
519 expected_response = b"hello world"
530 self.assertEqual(data, expected_response)
533 expected_response = b"Bad bad bad..."
534 handler = self.start_server([(404, [], expected_response)])
544 self.assertEqual(data, expected_response)
548 expected_response = b"pycon 2008..."
549 handler = self.start_server([(200, [], expected_response)])
[all …]
/third_party/node/test/parallel/
Dtest-http-1.0.js109 const expected_response = 'HTTP/1.1 200 OK\r\n' +
115 assert.strictEqual(server_response, expected_response);
146 const expected_response = 'HTTP/1.1 200 OK\r\n' +
158 assert.strictEqual(server_response, expected_response);
/third_party/libsoup/tests/
Drequester-test.c253 SoupBuffer *expected_response, in do_async_test() argument
305 if (expected_response) { in do_async_test()
307 expected_response->data, expected_response->length); in do_async_test()
482 guint expected_status, SoupBuffer *expected_response, in do_sync_request() argument
540 if (expected_response) { in do_sync_request()
542 expected_response->data, expected_response->length); in do_sync_request()
/third_party/cef/tests/ceftests/
Dserver_unittest.cc757 void VerifyHttpServerResponse(const HttpServerResponse& expected_response, in VerifyHttpServerResponse() argument
763 switch (expected_response.type) { in VerifyHttpServerResponse()
766 EXPECT_STREQ(expected_response.content_type.c_str(), in VerifyHttpServerResponse()
768 EXPECT_STREQ(expected_response.content.c_str(), data.c_str()); in VerifyHttpServerResponse()
777 EXPECT_EQ(expected_response.response_code, response->GetStatus()); in VerifyHttpServerResponse()
778 EXPECT_STREQ(expected_response.content_type.c_str(), in VerifyHttpServerResponse()
780 if (expected_response.no_content_length) { in VerifyHttpServerResponse()
785 EXPECT_STREQ(expected_response.content.c_str(), data.c_str()); in VerifyHttpServerResponse()
786 TestMapEqual(expected_response.extra_headers, header_map, true); in VerifyHttpServerResponse()
Durlrequest_unittest.cc2451 CefRefPtr<CefResponse> expected_response; in VerifyResponse() local
2461 expected_response = settings_.redirect_response; in VerifyResponse()
2463 expected_response = settings_.response; in VerifyResponse()
2470 if (expected_response && client->response_) in VerifyResponse()
2471 TestResponseEqual(expected_response, client->response_, true); in VerifyResponse()
/third_party/mindspore/mindspore/ccsrc/ps/core/
Dnode.cc107 uint64_t Node::AddMessageTrack(const uint32_t &expected_response) { in AddMessageTrack() argument
110 message_tracker_[request_id] = std::make_pair(expected_response, 0); in AddMessageTrack()
Dnode.h86 uint64_t AddMessageTrack(const uint32_t &expected_response);
/third_party/python/Lib/test/test_asyncio/
Dtest_events.py694 self.transport.write(expected_response)
701 expected_response = b'roger'
735 self.assertEqual(response, expected_response)