@@ -31,7 +31,6 @@ private import struct Foundation.Data
31
31
/// Client asserts:
32
32
/// - call was successful
33
33
/// - response is non-null
34
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
35
34
struct EmptyUnary : InteroperabilityTest {
36
35
func run( client: GRPCClient ) async throws {
37
36
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -65,7 +64,6 @@ struct EmptyUnary: InteroperabilityTest {
65
64
/// - response payload body is 314159 bytes in size
66
65
/// - clients are free to assert that the response payload body contents are zero and comparing
67
66
/// the entire response message against a golden response
68
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
69
67
struct LargeUnary : InteroperabilityTest {
70
68
func run( client: GRPCClient ) async throws {
71
69
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -141,7 +139,6 @@ struct LargeUnary: InteroperabilityTest {
141
139
/// - Response payload body is 314159 bytes in size.
142
140
/// - Clients are free to assert that the response payload body contents are zeros and comparing the
143
141
/// entire response message against a golden response.
144
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
145
142
class ClientCompressedUnary : InteroperabilityTest {
146
143
func run( client: GRPCClient ) async throws {
147
144
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -250,7 +247,6 @@ class ClientCompressedUnary: InteroperabilityTest {
250
247
/// - response payload body is 314159 bytes in size in both cases.
251
248
/// - clients are free to assert that the response payload body contents are zero and comparing the
252
249
/// entire response message against a golden response
253
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
254
250
class ServerCompressedUnary : InteroperabilityTest {
255
251
func run( client: GRPCClient ) async throws {
256
252
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -340,7 +336,6 @@ class ServerCompressedUnary: InteroperabilityTest {
340
336
/// Client asserts:
341
337
/// - call was successful
342
338
/// - response aggregated_payload_size is 74922
343
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
344
339
struct ClientStreaming : InteroperabilityTest {
345
340
func run( client: GRPCClient ) async throws {
346
341
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -391,7 +386,6 @@ struct ClientStreaming: InteroperabilityTest {
391
386
/// - response payload bodies are sized (in order): 31415, 9, 2653, 58979
392
387
/// - clients are free to assert that the response payload body contents are zero and
393
388
/// comparing the entire response messages against golden responses
394
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
395
389
struct ServerStreaming : InteroperabilityTest {
396
390
func run( client: GRPCClient ) async throws {
397
391
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -468,7 +462,6 @@ struct ServerStreaming: InteroperabilityTest {
468
462
/// - clients are free to assert that the response payload body contents are zero and comparing the
469
463
/// entire response messages against golden responses
470
464
class ServerCompressedStreaming : InteroperabilityTest {
471
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
472
465
func run( client: GRPCClient ) async throws {
473
466
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
474
467
let request : Grpc_Testing_StreamingOutputCallRequest = . with { request in
@@ -580,7 +573,6 @@ class ServerCompressedStreaming: InteroperabilityTest {
580
573
/// - response payload bodies are sized (in order): 31415, 9, 2653, 58979
581
574
/// - clients are free to assert that the response payload body contents are zero and
582
575
/// comparing the entire response messages against golden responses
583
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
584
576
struct PingPong : InteroperabilityTest {
585
577
func run( client: GRPCClient ) async throws {
586
578
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -647,7 +639,6 @@ struct PingPong: InteroperabilityTest {
647
639
/// Client asserts:
648
640
/// - call was successful
649
641
/// - exactly zero responses
650
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
651
642
struct EmptyStream : InteroperabilityTest {
652
643
func run( client: GRPCClient ) async throws {
653
644
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -703,7 +694,6 @@ struct EmptyStream: InteroperabilityTest {
703
694
/// received in the initial metadata for calls in Procedure steps 1 and 2.
704
695
/// - metadata with key "x-grpc-test-echo-trailing-bin" and value 0xababab is received in the
705
696
/// trailing metadata for calls in Procedure steps 1 and 2.
706
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
707
697
struct CustomMetadata : InteroperabilityTest {
708
698
let initialMetadataName = " x-grpc-test-echo-initial "
709
699
let initialMetadataValue = " test_initial_metadata_value "
@@ -824,7 +814,6 @@ struct CustomMetadata: InteroperabilityTest {
824
814
/// Client asserts:
825
815
/// - received status code is the same as the sent code for both Procedure steps 1 and 2
826
816
/// - received status message is the same as the sent message for both Procedure steps 1 and 2
827
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
828
817
struct StatusCodeAndMessage : InteroperabilityTest {
829
818
let expectedCode = 2
830
819
let expectedMessage = " test status message "
@@ -902,7 +891,6 @@ struct StatusCodeAndMessage: InteroperabilityTest {
902
891
/// - received status code is the same as the sent code for Procedure step 1
903
892
/// - received status message is the same as the sent message for Procedure step 1, including all
904
893
/// whitespace characters
905
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
906
894
struct SpecialStatusMessage : InteroperabilityTest {
907
895
func run( client: GRPCClient ) async throws {
908
896
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -945,7 +933,6 @@ struct SpecialStatusMessage: InteroperabilityTest {
945
933
///
946
934
/// Client asserts:
947
935
/// - received status code is 12 (UNIMPLEMENTED)
948
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
949
936
struct UnimplementedMethod : InteroperabilityTest {
950
937
func run( client: GRPCClient ) async throws {
951
938
let testServiceClient = Grpc_Testing_TestService . Client ( wrapping: client)
@@ -978,7 +965,6 @@ struct UnimplementedMethod: InteroperabilityTest {
978
965
///
979
966
/// Client asserts:
980
967
/// - received status code is 12 (UNIMPLEMENTED)
981
- @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
982
968
struct UnimplementedService : InteroperabilityTest {
983
969
func run( client: GRPCClient ) async throws {
984
970
let unimplementedServiceClient = Grpc_Testing_UnimplementedService . Client ( wrapping: client)
0 commit comments