Home
last modified time | relevance | path

Searched refs:expected_code (Results 1 – 10 of 10) sorted by relevance

/third_party/grpc/src/python/grpcio_tests/tests/http2/
Dnegative_http2_client.py33 def _expect_status_code(call, expected_code): argument
34 if call.code() != expected_code:
36 (expected_code, call.code()))
45 def _validate_status_code_and_details(call, expected_code, expected_details): argument
46 _expect_status_code(call, expected_code)
/third_party/ffmpeg/libavformat/
Dspdifdec.c120 const uint8_t *expected_code = buf + 7; in ff_spdif_probe() local
133 if (buf == expected_code) { in ff_spdif_probe()
150 expected_code = buf + offset; in ff_spdif_probe()
151 buf = expected_code - 7; in ff_spdif_probe()
/third_party/grpc/test/cpp/interop/
Dhttp2_client.cc57 bool Http2Client::AssertStatusCode(const Status& s, StatusCode expected_code) { in AssertStatusCode() argument
58 if (s.error_code() == expected_code) { in AssertStatusCode()
63 s.error_code(), expected_code, s.error_message().c_str()); in AssertStatusCode()
Dhttp2_client.h57 bool AssertStatusCode(const Status& s, StatusCode expected_code);
Dinterop_client.h131 bool AssertStatusCode(const Status& s, StatusCode expected_code,
Dinterop_client.cc136 bool InteropClient::AssertStatusCode(const Status& s, StatusCode expected_code, in AssertStatusCode() argument
138 if (s.error_code() == expected_code) { in AssertStatusCode()
145 s.error_code(), expected_code, s.error_message().c_str(), in AssertStatusCode()
/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_metadata_code_details_test.py316 for abort_code, expected_code, expected_details in test_cases:
336 self.assertIs(expected_code, exception_context.exception.code())
343 for abort_code, expected_code, expected_details in test_cases:
366 self.assertIs(expected_code, response_iterator_call.code())
372 for abort_code, expected_code, expected_details in test_cases:
394 self.assertIs(expected_code, exception_context.exception.code())
401 for abort_code, expected_code, expected_details in test_cases:
425 self.assertIs(expected_code, response_iterator_call.code())
/third_party/grpc/src/python/grpcio_tests/tests/interop/
Dmethods.py43 def _expect_status_code(call, expected_code): argument
44 if call.code() != expected_code:
46 (expected_code, call.code()))
55 def _validate_status_code_and_details(call, expected_code, expected_details): argument
56 _expect_status_code(call, expected_code)
/third_party/grpc/src/python/grpcio_tests/tests_aio/interop/
Dmethods.py42 expected_code: grpc.StatusCode) -> None:
44 if code != expected_code:
46 (expected_code, await call.code()))
57 expected_code: grpc.StatusCode,
59 await _expect_status_code(call, expected_code)
/third_party/grpc/src/ruby/spec/
Dclient_server_spec.rb277 def client_cancel_test(cancel_proc, expected_code, argument
308 expect(client_batch.status.code).to be expected_code
313 expected_code = StatusCodes::CANCELLED
316 client_cancel_test(cancel_proc, expected_code, expected_details)