C# Class Microsoft.Protocol.TestSuites.Smbd.TestSuite.SmbdCreditManagement

Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Mostrar archivo Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
Initialize_ConsumeAllSendCredits ( bool sendOneMoreMessage = false ) : void

Initialize for "Comsume Send Credits" test cases. It will establish RDMA connection and then consume all sent credits

Initialize_ReceiveSmbdDataTransferTestCase ( ushort maxReceiveCredit, ushort maxSendCredit, uint smb2ReadResponseSize, bool isUseMaxSendSize = false ) : void

Initialize receive SMBDirect data transfer test case And send the SMB2 READ request to peer

LogSmbdEndpointEvent ( string log ) : void
OperationWithSpecifiedCredits ( ushort credits ) : void
ValidateReadResponse ( int credits, int readResponseSize ) : void

Receive and validate SMB2 Read Response

Protected Methods

Method Description
TestCleanup ( ) : void
TestInitialize ( ) : void

Private Methods

Method Description
BVT_SmbdCreditMgmt_OperationWithMinimumCredits ( ) : void
ClassCleanup ( ) : void
ClassInitialize ( Microsoft.VisualStudio.TestTools.UnitTesting.TestContext context ) : void
SmbdCreditMgmt_ConsumeAllCreditServer_Timeout ( ) : void
SmbdCreditMgmt_ConsumeAllReceiveCredits ( ) : void
SmbdCreditMgmt_ConsumeAllSendCredits ( ) : void
SmbdCreditMgmt_NegativeParameter_CreditRequested ( ) : void
SmbdCreditMgmt_OperationWithLimitedCredits ( ) : void

Method Details

Initialize_ConsumeAllSendCredits() public method

Initialize for "Comsume Send Credits" test cases. It will establish RDMA connection and then consume all sent credits
public Initialize_ConsumeAllSendCredits ( bool sendOneMoreMessage = false ) : void
sendOneMoreMessage bool
return void

Initialize_ReceiveSmbdDataTransferTestCase() public method

Initialize receive SMBDirect data transfer test case And send the SMB2 READ request to peer
public Initialize_ReceiveSmbdDataTransferTestCase ( ushort maxReceiveCredit, ushort maxSendCredit, uint smb2ReadResponseSize, bool isUseMaxSendSize = false ) : void
maxReceiveCredit ushort
maxSendCredit ushort
smb2ReadResponseSize uint
isUseMaxSendSize bool
return void

LogSmbdEndpointEvent() public method

public LogSmbdEndpointEvent ( string log ) : void
log string
return void

OperationWithSpecifiedCredits() public method

public OperationWithSpecifiedCredits ( ushort credits ) : void
credits ushort
return void

TestCleanup() protected method

protected TestCleanup ( ) : void
return void

TestInitialize() protected method

protected TestInitialize ( ) : void
return void

ValidateReadResponse() public method

Receive and validate SMB2 Read Response
public ValidateReadResponse ( int credits, int readResponseSize ) : void
credits int
readResponseSize int Size of SMB2 read response
return void