@@ -36,6 +36,7 @@ private import struct Foundation.Data
3636/// Client asserts:
3737/// - call was successful
3838/// - response is non-null
39+ @available ( gRPCSwiftExtras 1 . 0 , * )
3940struct EmptyUnary : InteroperabilityTest {
4041 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
4142 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -69,6 +70,7 @@ struct EmptyUnary: InteroperabilityTest {
6970/// - response payload body is 314159 bytes in size
7071/// - clients are free to assert that the response payload body contents are zero and comparing
7172/// the entire response message against a golden response
73+ @available ( gRPCSwiftExtras 1 . 0 , * )
7274struct LargeUnary : InteroperabilityTest {
7375 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
7476 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -144,6 +146,7 @@ struct LargeUnary: InteroperabilityTest {
144146/// - Response payload body is 314159 bytes in size.
145147/// - Clients are free to assert that the response payload body contents are zeros and comparing the
146148/// entire response message against a golden response.
149+ @available ( gRPCSwiftExtras 1 . 0 , * )
147150class ClientCompressedUnary : InteroperabilityTest {
148151 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
149152 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -253,6 +256,7 @@ class ClientCompressedUnary: InteroperabilityTest {
253256/// - response payload body is 314159 bytes in size in both cases.
254257/// - clients are free to assert that the response payload body contents are zero and comparing the
255258/// entire response message against a golden response
259+ @available ( gRPCSwiftExtras 1 . 0 , * )
256260class ServerCompressedUnary : InteroperabilityTest {
257261 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
258262 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -342,6 +346,7 @@ class ServerCompressedUnary: InteroperabilityTest {
342346/// Client asserts:
343347/// - call was successful
344348/// - response aggregated_payload_size is 74922
349+ @available ( gRPCSwiftExtras 1 . 0 , * )
345350struct ClientStreaming : InteroperabilityTest {
346351 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
347352 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -392,6 +397,7 @@ struct ClientStreaming: InteroperabilityTest {
392397/// - response payload bodies are sized (in order): 31415, 9, 2653, 58979
393398/// - clients are free to assert that the response payload body contents are zero and
394399/// comparing the entire response messages against golden responses
400+ @available ( gRPCSwiftExtras 1 . 0 , * )
395401struct ServerStreaming : InteroperabilityTest {
396402 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
397403 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -467,6 +473,7 @@ struct ServerStreaming: InteroperabilityTest {
467473/// - response payload bodies are sized (in order): 31415, 92653
468474/// - clients are free to assert that the response payload body contents are zero and comparing the
469475/// entire response messages against golden responses
476+ @available ( gRPCSwiftExtras 1 . 0 , * )
470477class ServerCompressedStreaming : InteroperabilityTest {
471478 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
472479 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -579,6 +586,7 @@ class ServerCompressedStreaming: InteroperabilityTest {
579586/// - response payload bodies are sized (in order): 31415, 9, 2653, 58979
580587/// - clients are free to assert that the response payload body contents are zero and
581588/// comparing the entire response messages against golden responses
589+ @available ( gRPCSwiftExtras 1 . 0 , * )
582590struct PingPong : InteroperabilityTest {
583591 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
584592 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -645,6 +653,7 @@ struct PingPong: InteroperabilityTest {
645653/// Client asserts:
646654/// - call was successful
647655/// - exactly zero responses
656+ @available ( gRPCSwiftExtras 1 . 0 , * )
648657struct EmptyStream : InteroperabilityTest {
649658 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
650659 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -700,6 +709,7 @@ struct EmptyStream: InteroperabilityTest {
700709/// received in the initial metadata for calls in Procedure steps 1 and 2.
701710/// - metadata with key "x-grpc-test-echo-trailing-bin" and value 0xababab is received in the
702711/// trailing metadata for calls in Procedure steps 1 and 2.
712+ @available ( gRPCSwiftExtras 1 . 0 , * )
703713struct CustomMetadata : InteroperabilityTest {
704714 let initialMetadataName = " x-grpc-test-echo-initial "
705715 let initialMetadataValue = " test_initial_metadata_value "
@@ -820,6 +830,7 @@ struct CustomMetadata: InteroperabilityTest {
820830/// Client asserts:
821831/// - received status code is the same as the sent code for both Procedure steps 1 and 2
822832/// - received status message is the same as the sent message for both Procedure steps 1 and 2
833+ @available ( gRPCSwiftExtras 1 . 0 , * )
823834struct StatusCodeAndMessage : InteroperabilityTest {
824835 let expectedCode = 2
825836 let expectedMessage = " test status message "
@@ -897,6 +908,7 @@ struct StatusCodeAndMessage: InteroperabilityTest {
897908/// - received status code is the same as the sent code for Procedure step 1
898909/// - received status message is the same as the sent message for Procedure step 1, including all
899910/// whitespace characters
911+ @available ( gRPCSwiftExtras 1 . 0 , * )
900912struct SpecialStatusMessage : InteroperabilityTest {
901913 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
902914 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -939,6 +951,7 @@ struct SpecialStatusMessage: InteroperabilityTest {
939951///
940952/// Client asserts:
941953/// - received status code is 12 (UNIMPLEMENTED)
954+ @available ( gRPCSwiftExtras 1 . 0 , * )
942955struct UnimplementedMethod : InteroperabilityTest {
943956 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
944957 let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -971,6 +984,7 @@ struct UnimplementedMethod: InteroperabilityTest {
971984///
972985/// Client asserts:
973986/// - received status code is 12 (UNIMPLEMENTED)
987+ @available ( gRPCSwiftExtras 1 . 0 , * )
974988struct UnimplementedService : InteroperabilityTest {
975989 func run< Transport: ClientTransport > ( client: GRPCClient < Transport > ) async throws {
976990 let unimplementedServiceClient = Grpc_Testing_UnimplementedService . Client ( wrapping: client)
0 commit comments