mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-25 04:47:50 +00:00
30 lines
1008 B
Swift
30 lines
1008 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(),
|
|
maxCachedStreamIDs: 1024,
|
|
frameReceivedHandler: { _ in },
|
|
sendFunction: { _, _ in },
|
|
userEventFunction: { _ in })
|
|
XCTAssertNotNil(x)
|
|
}
|
|
}
|