Photon Server API
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | List of all members
ExitGames.Tests.RPC.Serialization.SerializationTestBase Class Referenceabstract
Inheritance diagram for ExitGames.Tests.RPC.Serialization.SerializationTestBase:
ExitGames.Tests.RPC.Serialization.Amf3 ExitGames.Tests.RPC.Serialization.FlashXmlBase ExitGames.Tests.RPC.Serialization.GpBinaryV13 ExitGames.Tests.RPC.Serialization.GpBinaryV14 ExitGames.Tests.RPC.Serialization.GpBinaryV15Byte ExitGames.Tests.RPC.Serialization.GpBinaryV15Short ExitGames.Tests.RPC.Serialization.FlashXml ExitGames.Tests.RPC.Serialization.FlashXmlJson

Public Member Functions

void DeserializeOperationRequest_BasicTypes ()
 
virtual void DeserializeOperationRequest_BasicTypesArrays ()
 
void DeserializeOperationRequest_Hashtable ()
 
void SerializeOperationResponse_BasicTypes ()
 
virtual void SerializeOperationResponse_BasicTypesArrays ()
 
virtual void SerializeEventWithGuid ()
 

Protected Member Functions

TestOperationContext CreateOperationContext ()
 
abstract byte[] CreateOperationRequestData (OperationCodes operationCode, Dictionary< OperationParams, object > parameter)
 
virtual object GetExpectedOperationRequestParameterValue (object value)
 
virtual void CheckOperationRequestParam (OperationRequest operationRequest, OperationParams paramCode, object value)
 
virtual byte[] SerializeEvent (EventData eventData)
 

Static Protected Member Functions

static void WriteData (byte[] data)
 

Protected Attributes

const byte ByteValue = 12
 
const short ShortValue = 1024
 
const int IntValue = 128000
 
const long LongValue = 1024 * 1024 * 1024
 
const float SingleValue = 1234.1234f
 
const double DoubleValue = 12345678.12345678
 
const string StringValue = "Hello World !"
 

Static Protected Attributes

static readonly byte[] GuidValue
 
static readonly byte[] ByteArrayValue
 
static readonly short[] ShortArrayValue
 
static readonly int[] IntArrayValue
 
static readonly long[] LongArrayValue
 
static readonly string[] StringArrayValue
 
static readonly float[] SingleArrayValue
 
static readonly double[] DoubleArrayValue
 

Properties

abstract IOperationSerializer Serializer [get]
 
abstract RpcProtocolType ProtocolType [get]
 
abstract bool SupportsProtocolV15 [get]
 

Member Function Documentation

virtual void ExitGames.Tests.RPC.Serialization.SerializationTestBase.CheckOperationRequestParam ( OperationRequest  operationRequest,
OperationParams  paramCode,
object  value 
)
inlineprotectedvirtual
TestOperationContext ExitGames.Tests.RPC.Serialization.SerializationTestBase.CreateOperationContext ( )
inlineprotected
abstract byte [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.CreateOperationRequestData ( OperationCodes  operationCode,
Dictionary< OperationParams, object >  parameter 
)
protectedpure virtual
void ExitGames.Tests.RPC.Serialization.SerializationTestBase.DeserializeOperationRequest_BasicTypes ( )
inline
virtual void ExitGames.Tests.RPC.Serialization.SerializationTestBase.DeserializeOperationRequest_BasicTypesArrays ( )
inlinevirtual
void ExitGames.Tests.RPC.Serialization.SerializationTestBase.DeserializeOperationRequest_Hashtable ( )
inline
virtual object ExitGames.Tests.RPC.Serialization.SerializationTestBase.GetExpectedOperationRequestParameterValue ( object  value)
inlineprotectedvirtual
virtual byte [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.SerializeEvent ( EventData  eventData)
inlineprotectedvirtual
virtual void ExitGames.Tests.RPC.Serialization.SerializationTestBase.SerializeEventWithGuid ( )
inlinevirtual
void ExitGames.Tests.RPC.Serialization.SerializationTestBase.SerializeOperationResponse_BasicTypes ( )
inline
virtual void ExitGames.Tests.RPC.Serialization.SerializationTestBase.SerializeOperationResponse_BasicTypesArrays ( )
inlinevirtual
static void ExitGames.Tests.RPC.Serialization.SerializationTestBase.WriteData ( byte[]  data)
inlinestaticprotected

Member Data Documentation

readonly byte [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.ByteArrayValue
staticprotected
const byte ExitGames.Tests.RPC.Serialization.SerializationTestBase.ByteValue = 12
protected
readonly double [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.DoubleArrayValue
staticprotected
const double ExitGames.Tests.RPC.Serialization.SerializationTestBase.DoubleValue = 12345678.12345678
protected
readonly byte [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.GuidValue
staticprotected
Initial value:
= new byte[]
{
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10
}
readonly int [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.IntArrayValue
staticprotected
const int ExitGames.Tests.RPC.Serialization.SerializationTestBase.IntValue = 128000
protected
readonly long [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.LongArrayValue
staticprotected
const long ExitGames.Tests.RPC.Serialization.SerializationTestBase.LongValue = 1024 * 1024 * 1024
protected
readonly short [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.ShortArrayValue
staticprotected
const short ExitGames.Tests.RPC.Serialization.SerializationTestBase.ShortValue = 1024
protected
readonly float [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.SingleArrayValue
staticprotected
const float ExitGames.Tests.RPC.Serialization.SerializationTestBase.SingleValue = 1234.1234f
protected
readonly string [] ExitGames.Tests.RPC.Serialization.SerializationTestBase.StringArrayValue
staticprotected
const string ExitGames.Tests.RPC.Serialization.SerializationTestBase.StringValue = "Hello World !"
protected

Property Documentation

abstract RpcProtocolType ExitGames.Tests.RPC.Serialization.SerializationTestBase.ProtocolType
getprotected
abstract IOperationSerializer ExitGames.Tests.RPC.Serialization.SerializationTestBase.Serializer
getprotected
abstract bool ExitGames.Tests.RPC.Serialization.SerializationTestBase.SupportsProtocolV15
getprotected