Skip to content

Commit

Permalink
Add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
glbrntt committed Aug 28, 2019
1 parent d39cced commit f06fda6
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ let package = Package(
name: "GRPCTests",
dependencies: [
"GRPC",
"EchoModel",
"EchoImplementation",
"GRPCSampleData",
"GRPCInteroperabilityTestsImplementation"
]
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/AnyServiceClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
import Foundation
import GRPC
import EchoModel
import XCTest

class AnyServiceClientTests: EchoTestCaseBase {
Expand Down
10 changes: 8 additions & 2 deletions Tests/GRPCTests/BasicEchoTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,23 @@ import NIO
import NIOSSL
import GRPC
import GRPCSampleData
import EchoModel
import EchoImplementation
import XCTest

extension Echo_EchoRequest {
init(text: String) {
self.text = text
self = .with {
$0.text = text
}
}
}

extension Echo_EchoResponse {
init(text: String) {
self.text = text
self = .with {
$0.text = text
}
}
}

Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/ClientCancellingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
import Foundation
import GRPC
import EchoModel
import XCTest

class ClientCancellingTests: EchoTestCaseBase {
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/ClientClosedChannelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
import Foundation
import GRPC
import EchoModel
import NIO
import XCTest

Expand Down
2 changes: 2 additions & 0 deletions Tests/GRPCTests/ClientConnectionBackoffTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
import Foundation
import GRPC
import EchoModel
import EchoImplementation
import NIO
import XCTest
import NIOConcurrencyHelpers
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/ClientTLSFailureTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import Foundation
import GRPC
import GRPCSampleData
import EchoImplementation
import NIO
import NIOSSL
import XCTest
Expand Down
2 changes: 2 additions & 0 deletions Tests/GRPCTests/ClientTLSTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Foundation
import GRPC
import GRPCSampleData
import EchoModel
import EchoImplementation
import NIO
import NIOSSL
import XCTest
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/ClientTimeoutTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
import Foundation
@testable import GRPC
import EchoModel
import NIO
import XCTest

Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/FunctionalTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import NIO
import NIOHTTP1
import NIOHTTP2
@testable import GRPC
import EchoModel
import XCTest

class FunctionalTestsInsecureTransport: EchoTestCaseBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import Foundation
import NIO
import NIOHTTP1
@testable import GRPC
import EchoModel
import EchoImplementation
import XCTest
import Logging

Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/GRPCChannelHandlerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import XCTest
import NIO
import NIOHTTP1
@testable import GRPC
import EchoModel

class GRPCChannelHandlerTests: GRPCChannelHandlerResponseCapturingTestCase {
func testUnimplementedMethodReturnsUnimplementedStatus() throws {
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/GRPCStatusCodeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
import Foundation
@testable import GRPC
import EchoModel
import NIO
import NIOHTTP1
import NIOHTTP2
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/GRPCTypeSizeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
import Foundation
import GRPC
import EchoModel
import XCTest

/// These test check the size of types which get wrapped in `NIOAny`. If the size of the type is
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/HTTP1ToRawGRPCServerCodecTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import XCTest
import NIO
import NIOHTTP1
@testable import GRPC
import EchoModel
import Logging

func gRPCMessage(channel: EmbeddedChannel, compression: Bool = false, message: Data? = nil) -> ByteBuffer {
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/ImmediateServerFailureTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
import Foundation
import GRPC
import EchoModel
import NIO
import XCTest

Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/ServerThrowingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import NIO
import NIOHTTP1
import NIOHTTP2
@testable import GRPC
import EchoModel
import XCTest

let thrownError = GRPCStatus(code: .internalError, message: "expected error")
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/ServerWebTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import Foundation
import NIO
@testable import GRPC
import EchoModel
import XCTest

// Only test Unary and ServerStreaming, as ClientStreaming is not
Expand Down
1 change: 1 addition & 0 deletions Tests/GRPCTests/StreamingRequestClientCallTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
import Foundation
import GRPC
import EchoModel
import XCTest

class StreamingRequestClientCallTests: EchoTestCaseBase {
Expand Down

0 comments on commit f06fda6

Please sign in to comment.