forked from apple/swift-nio-http2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
391 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
Tests/NIOHTTP2Tests/HTTP2StreamMultiplexerTests+XCTest.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// HTTP2StreamMultiplexerTests+XCTest.swift | ||
// | ||
import XCTest | ||
|
||
/// | ||
/// NOTE: This file was generated by generate_linux_tests.rb | ||
/// | ||
/// Do NOT edit this file directly as it will be regenerated automatically when needed. | ||
/// | ||
|
||
extension HTTP2StreamMultiplexerTests { | ||
|
||
static var allTests : [(String, (HTTP2StreamMultiplexerTests) -> () throws -> Void)] { | ||
return [ | ||
("testMultiplexerIgnoresFramesOnStream0", testMultiplexerIgnoresFramesOnStream0), | ||
("testHeadersFramesCreateNewChannels", testHeadersFramesCreateNewChannels), | ||
("testChannelsCloseThemselvesWhenToldTo", testChannelsCloseThemselvesWhenToldTo), | ||
("testChannelsCloseAfterResetStreamFrameFirstThenEvent", testChannelsCloseAfterResetStreamFrameFirstThenEvent), | ||
("testChannelsCloseAfterGoawayFrameFirstThenEvent", testChannelsCloseAfterGoawayFrameFirstThenEvent), | ||
("testFramesForUnknownStreamsAreReported", testFramesForUnknownStreamsAreReported), | ||
("testFramesForClosedStreamsAreReported", testFramesForClosedStreamsAreReported), | ||
("testClosingIdleChannels", testClosingIdleChannels), | ||
("testClosingActiveChannels", testClosingActiveChannels), | ||
("testClosePromiseIsSatisfiedWithTheEvent", testClosePromiseIsSatisfiedWithTheEvent), | ||
("testMultipleClosePromisesAreSatisfied", testMultipleClosePromisesAreSatisfied), | ||
("testClosePromiseFailsWithError", testClosePromiseFailsWithError), | ||
("testFramesAreNotDeliveredUntilStreamIsSetUp", testFramesAreNotDeliveredUntilStreamIsSetUp), | ||
("testFramesAreNotDeliveredIfSetUpFails", testFramesAreNotDeliveredIfSetUpFails), | ||
("testFlushingOneChannelDoesntFlushThemAll", testFlushingOneChannelDoesntFlushThemAll), | ||
("testUnflushedWritesFailOnClose", testUnflushedWritesFailOnClose), | ||
("testUnflushedWritesFailOnError", testUnflushedWritesFailOnError), | ||
("testWritesFailOnClosedStreamChannels", testWritesFailOnClosedStreamChannels), | ||
("testReadPullsInAllFrames", testReadPullsInAllFrames), | ||
("testReadIsPerChannel", testReadIsPerChannel), | ||
("testReadWillCauseAutomaticFrameDelivery", testReadWillCauseAutomaticFrameDelivery), | ||
("testReadWithNoPendingDataCausesReadOnParentChannel", testReadWithNoPendingDataCausesReadOnParentChannel), | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// ReentrancyTests+XCTest.swift | ||
// | ||
import XCTest | ||
|
||
/// | ||
/// NOTE: This file was generated by generate_linux_tests.rb | ||
/// | ||
/// Do NOT edit this file directly as it will be regenerated automatically when needed. | ||
/// | ||
|
||
extension ReentrancyTests { | ||
|
||
static var allTests : [(String, (ReentrancyTests) -> () throws -> Void)] { | ||
return [ | ||
("testReEnterReadOnRead", testReEnterReadOnRead), | ||
("testReenterInactiveOnRead", testReenterInactiveOnRead), | ||
("testReenterReadEOFOnRead", testReenterReadEOFOnRead), | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// SimpleClientServerTests+XCTest.swift | ||
// | ||
import XCTest | ||
|
||
/// | ||
/// NOTE: This file was generated by generate_linux_tests.rb | ||
/// | ||
/// Do NOT edit this file directly as it will be regenerated automatically when needed. | ||
/// | ||
|
||
extension SimpleClientServerTests { | ||
|
||
static var allTests : [(String, (SimpleClientServerTests) -> () throws -> Void)] { | ||
return [ | ||
("testBasicRequestResponse", testBasicRequestResponse), | ||
("testManyRequestsAtOnce", testManyRequestsAtOnce), | ||
("testNothingButGoaway", testNothingButGoaway), | ||
("testGoAwayWithStreamsUpQuiescing", testGoAwayWithStreamsUpQuiescing), | ||
("testLargeDataFramesAreSplit", testLargeDataFramesAreSplit), | ||
("testSendingDataFrameWithSmallFile", testSendingDataFrameWithSmallFile), | ||
("testSendingDataFrameWithLargeFile", testSendingDataFrameWithLargeFile), | ||
("testMoreRequestsThanMaxConcurrentStreamsAtOnce", testMoreRequestsThanMaxConcurrentStreamsAtOnce), | ||
("testOverridingDefaultSettings", testOverridingDefaultSettings), | ||
("testBasicPingFrames", testBasicPingFrames), | ||
("testUnflushedWritesAreFailedOnChannelInactive", testUnflushedWritesAreFailedOnChannelInactive), | ||
("testUnflushedWritesAreFailedOnHalfClosure", testUnflushedWritesAreFailedOnHalfClosure), | ||
("testUnflushedWritesAreFailedOnChannelInactiveRentrant", testUnflushedWritesAreFailedOnChannelInactiveRentrant), | ||
("testUnflushedWritesAreFailedOnHalfClosureReentrant", testUnflushedWritesAreFailedOnHalfClosureReentrant), | ||
("testFrameReceivesDoNotTriggerFlushes", testFrameReceivesDoNotTriggerFlushes), | ||
("testAutomaticFlowControl", testAutomaticFlowControl), | ||
("testPartialFrame", testPartialFrame), | ||
("testFailingUnflushedWritesForResetStream", testFailingUnflushedWritesForResetStream), | ||
("testFailingFlushedWritesForResetStream", testFailingFlushedWritesForResetStream), | ||
("testFailingUnflushedWritesForGoaway", testFailingUnflushedWritesForGoaway), | ||
("testFailingFlushedWritesForGoaway", testFailingFlushedWritesForGoaway), | ||
("testSendingTrailers", testSendingTrailers), | ||
("test1XXResponseHeaderFields", test1XXResponseHeaderFields), | ||
("testPriorityFramesAreNotEmitted", testPriorityFramesAreNotEmitted), | ||
("testStreamClosedWithNoError", testStreamClosedWithNoError), | ||
("testStreamClosedViaRstStream", testStreamClosedViaRstStream), | ||
("testStreamClosedViaGoaway", testStreamClosedViaGoaway), | ||
("testStreamCloseEventForRstStreamFiresAfterFrame", testStreamCloseEventForRstStreamFiresAfterFrame), | ||
("testStreamCloseEventForGoawayFiresAfterFrame", testStreamCloseEventForGoawayFiresAfterFrame), | ||
] | ||
} | ||
} | ||
|
Oops, something went wrong.