mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-27 05:04:23 +00:00
30 lines
1018 B
Swift
30 lines
1018 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftNIO open source project
|
|
//
|
|
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import XCTest
|
|
import NIO
|
|
@testable import NIOHTTP2
|
|
|
|
class BasicTests: XCTestCase {
|
|
func testCanInitializeInnerSession() {
|
|
let x = NGHTTP2Session(mode: .server,
|
|
allocator: ByteBufferAllocator(),
|
|
connectionManager: HTTP2ConnectionManager(),
|
|
frameReceivedHandler: { _ in },
|
|
sendFunction: { _, _ in },
|
|
flushFunction: { })
|
|
XCTAssertNotNil(x)
|
|
}
|
|
}
|