C# Class Microsoft.Protocols.TestSuites.Rdpevor.RdpevorAdapter

Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IRdpevorAdapter
Show file Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
ExpectClientNotification ( byte presentationId, NotificationTypeValues notificationType ) : void

Method to expect a TSMM_CLIENT_NOTIFICATION from client.

ExpectPresentationiResponse ( byte presentationId ) : void

Method to expect a TSMM_PRESENTATION_RESPONSE from client.

Initialize ( ITestSite testSite ) : void
ProtocolInitialize ( RdpedycServer rdpedycServer, DynamicVC_TransportType transportType = DynamicVC_TransportType.RDP_TCP ) : bool

Initialize this protocol with create control and data channels.

Reset ( ) : void
SendPresentationRequest ( byte presentationId, CommandValues command, uint srcWidth, uint srcHeight, uint scaledWidth, uint scaledHeight, ulong geometryId, VideoSubtype videoType, byte extraData ) : void

Method to send a TSMM_PRESENTATION_REQUEST to client.

SendVideoPacket ( byte presentationId, TsmmVideoData_FlagsValues flags, ushort packetIndex, ushort totalPacketsInSample, uint SampleNumber, byte packetData, ulong timeStamp, bool isCompressed = false ) : void
SendVideoSample ( byte presentationId, bool isKeyFrame, uint SampleNumber, byte sampleData, ulong timeStamp, bool isCompressed = false ) : void

Method to sent a sample to client.

SetTestType ( RdpevorNegativeType negType ) : void

Set the test type to positive or negative test types.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ExpectClientNotification() public method

Method to expect a TSMM_CLIENT_NOTIFICATION from client.
public ExpectClientNotification ( byte presentationId, NotificationTypeValues notificationType ) : void
presentationId byte The expected presentation Id.
notificationType NotificationTypeValues The expected notification type
return void

ExpectPresentationiResponse() public method

Method to expect a TSMM_PRESENTATION_RESPONSE from client.
public ExpectPresentationiResponse ( byte presentationId ) : void
presentationId byte The expected presentation Id.
return void

Initialize() public method

public Initialize ( ITestSite testSite ) : void
testSite ITestSite
return void

ProtocolInitialize() public method

Initialize this protocol with create control and data channels.
public ProtocolInitialize ( RdpedycServer rdpedycServer, DynamicVC_TransportType transportType = DynamicVC_TransportType.RDP_TCP ) : bool
rdpedycServer Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.RdpedycServer RDPEDYC Server instance
transportType DynamicVC_TransportType selected transport type for created channels
return bool

Reset() public method

public Reset ( ) : void
return void

SendPresentationRequest() public method

Method to send a TSMM_PRESENTATION_REQUEST to client.
public SendPresentationRequest ( byte presentationId, CommandValues command, uint srcWidth, uint srcHeight, uint scaledWidth, uint scaledHeight, ulong geometryId, VideoSubtype videoType, byte extraData ) : void
presentationId byte A number that uniquely identifies the video stream on the server.
command CommandValues A number that identifies which operation the client is to perform.
srcWidth uint This is the width of the video stream after scaling back to the original resolution.
srcHeight uint This is the height of the video stream after scaling back to the original resolution.
scaledWidth uint This is the width of the video stream.
scaledHeight uint This is the height of the video stream.
geometryId ulong This field is used to correlate this video data with its geometry.
videoType VideoSubtype This field identifies the Media Foundation video subtype of the video stream.
extraData byte
return void

SendVideoPacket() public method

public SendVideoPacket ( byte presentationId, TsmmVideoData_FlagsValues flags, ushort packetIndex, ushort totalPacketsInSample, uint SampleNumber, byte packetData, ulong timeStamp, bool isCompressed = false ) : void
presentationId byte
flags TsmmVideoData_FlagsValues
packetIndex ushort
totalPacketsInSample ushort
SampleNumber uint
packetData byte
timeStamp ulong
isCompressed bool
return void

SendVideoSample() public method

Method to sent a sample to client.
public SendVideoSample ( byte presentationId, bool isKeyFrame, uint SampleNumber, byte sampleData, ulong timeStamp, bool isCompressed = false ) : void
presentationId byte This is the same number as the PresentationId field in the TSMM_PRESENTATION_REQUEST message.
isKeyFrame bool Is the sample a key frame.
SampleNumber uint The number of sample in the video stream.
sampleData byte
timeStamp ulong
isCompressed bool Whether the packet will be compressed before sent.
return void

SetTestType() public method

Set the test type to positive or negative test types.
public SetTestType ( RdpevorNegativeType negType ) : void
negType RdpevorNegativeType The type of current test. None means positive test, others are negative tests.
return void