Copied remotely
[mono.git] / mcs / class / System.Runtime.Remoting / Test / HttpCalls.cs
1 //
2 // MonoTests.Remoting.HttpCalls.cs
3 //
4 // Author: Lluis Sanchez Gual (lluis@ximian.com)
5 //
6 // 2003 (C) Copyright, Ximian, Inc.
7 //
8
9 using System;
10 using System.Runtime.Remoting;
11 using System.Runtime.Remoting.Channels;
12 using System.Runtime.Remoting.Channels.Http;
13 using NUnit.Framework;
14
15 namespace MonoTests.Remoting
16 {
17         [TestFixture]
18         public class HttpSyncCallTest : SyncCallTest
19         {
20                 public override ChannelManager CreateChannelManager ()
21                 {
22                         return new HttpChannelManager ();
23                 }
24         }
25
26         [TestFixture]
27         public class HttpAsyncCallTest : AsyncCallTest
28         {
29                 public override ChannelManager CreateChannelManager ()
30                 {
31                         return new HttpChannelManager ();
32                 }
33         }
34
35         [TestFixture]
36         public class HttpReflectionCallTest : ReflectionCallTest
37         {
38                 public override ChannelManager CreateChannelManager ()
39                 {
40                         return new HttpChannelManager ();
41                 }
42         }
43
44         [TestFixture]
45         public class HttpDelegateCallTest : DelegateCallTest
46         {
47                 public override ChannelManager CreateChannelManager ()
48                 {
49                         return new HttpChannelManager ();
50                 }
51         }
52
53         [Serializable]
54         public class HttpChannelManager : ChannelManager
55         {
56                 public override IChannelSender CreateClientChannel ()
57                 {
58                         return new HttpChannel ();
59                 }
60
61                 public override IChannelReceiver CreateServerChannel ()
62                 {
63                         return new HttpChannel (1133);
64                 }
65         }
66 }
67