Livt packages

Livt.Net

Version 1.4.1

Ethernet, IPv4, TCP, UDP, ARP, TFTP, and Telnet networking components for Livt hardware.

Published files (163)

tests/TcpStreamServerAutoStorageTest.lvt

namespace Livt.Net.Tests

using Livt.Net
using Livt.IO

/**
 * Runs the shared TCP protocol regressions with independently selected byte stores.
 */
@Test
@Context(ClockFrequency = 50MHz)
component TcpStreamServerAutoStorageTest
{
	// Owned protocol fixture; each scenario initializes its connection state.
	checks: TcpStreamServerStorageChecks<Ram<byte, 8, MemoryStyle.Auto>, Ram<byte, 8, MemoryStyle.Auto>>

	/**
	 * Creates the protocol fixture in this context.
	 */
	new()
	{
		checks = new TcpStreamServerStorageChecks<Ram<byte, 8, MemoryStyle.Auto>, Ram<byte, 8, MemoryStyle.Auto>>()
	}

	/**
	 * Verifies StreamRetransmissionAndClose against the selected storage backends.
	 */
	@Test
	fn StreamRetransmissionAndClose()
	{
		checks.StreamRetransmissionAndClose()
	}

	/**
	 * Verifies ResumesAfterLongIdle against the selected storage backends.
	 */
	@Test
	fn ResumesAfterLongIdle()
	{
		checks.ResumesAfterLongIdle()
	}

	/**
	 * Verifies AbandonsUnansweredHandshakeAfterRetryLimit against the selected storage backends.
	 */
	@Test
	fn AbandonsUnansweredHandshakeAfterRetryLimit()
	{
		checks.AbandonsUnansweredHandshakeAfterRetryLimit()
	}

	/**
	 * Verifies LostHandshakeAndDataTimeout against the selected storage backends.
	 */
	@Test
	fn LostHandshakeAndDataTimeout()
	{
		checks.LostHandshakeAndDataTimeout()
	}
}