Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Sources/GRPCInteropTests/InteroperabilityTestCases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
internal import GRPCCore
private import SwiftProtobuf

#if canImport(FoundationEssentials)
private import struct FoundationEssentials.Data
#else
private import struct Foundation.Data
#endif

/// This test verifies that implementations support zero-size messages. Ideally, client
/// implementations would verify that the request and response were zero bytes serialized, but
Expand Down
7 changes: 6 additions & 1 deletion Sources/GRPCInteropTests/TestService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@
* limitations under the License.
*/

private import Foundation
public import GRPCCore
private import SwiftProtobuf

#if canImport(FoundationEssentials)
private import struct FoundationEssentials.Data
#else
private import struct Foundation.Data
#endif

public struct TestService: Grpc_Testing_TestService.ServiceProtocol {
public init() {}

Expand Down
Loading