mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* HttpCalls.cs, TcpCalls.cs: Don't use a hardcoded port number for the test channels, take any free port. svn path=/trunk/mcs/; revision=40774
68 lines
1.3 KiB
C#
68 lines
1.3 KiB
C#
//
|
|
// MonoTests.Remoting.HttpCalls.cs
|
|
//
|
|
// Author: Lluis Sanchez Gual ([email protected])
|
|
//
|
|
// 2003 (C) Copyright, Ximian, Inc.
|
|
//
|
|
|
|
using System;
|
|
using System.Runtime.Remoting;
|
|
using System.Runtime.Remoting.Channels;
|
|
using System.Runtime.Remoting.Channels.Http;
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoTests.Remoting
|
|
{
|
|
[TestFixture]
|
|
public class HttpSyncCallTest : SyncCallTest
|
|
{
|
|
public override ChannelManager CreateChannelManager ()
|
|
{
|
|
return new HttpChannelManager ();
|
|
}
|
|
}
|
|
|
|
[TestFixture]
|
|
public class HttpAsyncCallTest : AsyncCallTest
|
|
{
|
|
public override ChannelManager CreateChannelManager ()
|
|
{
|
|
return new HttpChannelManager ();
|
|
}
|
|
}
|
|
|
|
[TestFixture]
|
|
public class HttpReflectionCallTest : ReflectionCallTest
|
|
{
|
|
public override ChannelManager CreateChannelManager ()
|
|
{
|
|
return new HttpChannelManager ();
|
|
}
|
|
}
|
|
|
|
[TestFixture]
|
|
public class HttpDelegateCallTest : DelegateCallTest
|
|
{
|
|
public override ChannelManager CreateChannelManager ()
|
|
{
|
|
return new HttpChannelManager ();
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class HttpChannelManager : ChannelManager
|
|
{
|
|
public override IChannelSender CreateClientChannel ()
|
|
{
|
|
return new HttpChannel ();
|
|
}
|
|
|
|
public override IChannelReceiver CreateServerChannel ()
|
|
{
|
|
return new HttpChannel (0);
|
|
}
|
|
}
|
|
}
|
|
|