Permalink
Browse files

remove svn:executable

make line-endings uniform
set svn:eol-style native for files with LF-endings

svn path=/trunk/mono/; revision=64936
  • Loading branch information...
1 parent bd35a31 commit 46fb81b0d39e997b0a242797c45491fe2c91bfd4 @harinath harinath committed Sep 5, 2006
View
@@ -72,7 +72,7 @@ static int Main ()
return 7;
// Creata a MBR object to test that the other domain has the correct info
- MBRTest test = (MBRTest) newDomain.CreateInstanceAndUnwrap (typeof(MBRTest).Assembly.FullName, typeof(MBRTest).FullName);
+ MBRTest test = (MBRTest) newDomain.CreateInstanceAndUnwrap (typeof(MBRTest).Assembly.FullName, typeof(MBRTest).FullName);
if (!RemotingServices.IsTransparentProxy(test))
return 8;
View
0 mono/tests/interlocked-2.2.cs 100755 → 100644
No changes.
View
0 mono/tests/interlocked.cs 100755 → 100644
No changes.
View
@@ -1,30 +1,30 @@
-using System;
+using System;
using System.Threading;
using System.Runtime.InteropServices;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Proxies;
using System.Runtime.Remoting.Channels;
using System.Runtime.Serialization;
-
-namespace RemotingTest
-{
- class MyProxy : RealProxy
+
+namespace RemotingTest
+{
+ class MyProxy : RealProxy
{
readonly MarshalByRefObject target;
- public MyProxy (MarshalByRefObject target) : base (target.GetType())
+ public MyProxy (MarshalByRefObject target) : base (target.GetType())
{
this.target = target;
}
- public override IMessage Invoke (IMessage request)
+ public override IMessage Invoke (IMessage request)
{
IMethodCallMessage call = (IMethodCallMessage)request;
Console.WriteLine ("Invoke " + call.MethodName);
Console.Write ("ARGS(");
- for (int i = 0; i < call.ArgCount; i++)
+ for (int i = 0; i < call.ArgCount; i++)
{
if (i != 0)
Console.Write (", ");
@@ -33,7 +33,7 @@ public override IMessage Invoke (IMessage request)
}
Console.WriteLine (")");
Console.Write ("INARGS(");
- for (int i = 0; i < call.InArgCount; i++)
+ for (int i = 0; i < call.InArgCount; i++)
{
if (i != 0)
Console.Write (", ");
@@ -45,7 +45,7 @@ public override IMessage Invoke (IMessage request)
IMethodReturnMessage res = RemotingServices.ExecuteMessage (target, call);
Console.Write ("RESARGS(");
- for (int i = 0; i < res.ArgCount; i++)
+ for (int i = 0; i < res.ArgCount; i++)
{
if (i != 0)
Console.Write (", ");
@@ -55,7 +55,7 @@ public override IMessage Invoke (IMessage request)
Console.WriteLine (")");
Console.Write ("RESOUTARGS(");
- for (int i = 0; i < res.OutArgCount; i++)
+ for (int i = 0; i < res.OutArgCount; i++)
{
if (i != 0)
Console.Write (", ");
@@ -68,57 +68,57 @@ public override IMessage Invoke (IMessage request)
}
}
- class R2
+ class R2
{
string sTest;
- public R2()
+ public R2()
{
sTest = "R2";
}
- public void Print()
+ public void Print()
{
Console.WriteLine(sTest);
}
}
[Serializable]
- class R2_MBV
+ class R2_MBV
{
string sTest;
- public R2_MBV()
+ public R2_MBV()
{
sTest = "R2";
}
- public string Data
- {
- get
+ public string Data
+ {
+ get
{
return sTest;
- }
+ }
+ }
+ }
+
+ class R1 : MarshalByRefObject
+ {
+ public R2 TestMBV() {
+ return new R2();
}
}
-
- class R1 : MarshalByRefObject
+
+ class Class1
{
- public R2 TestMBV() {
- return new R2();
- }
- }
-
- class Class1
- {
- static int Main(string[] args)
- {
- Console.WriteLine("test " + AppDomain.CurrentDomain.FriendlyName);
- AppDomain app2 = AppDomain.CreateDomain("2");
-
+ static int Main(string[] args)
+ {
+ Console.WriteLine("test " + AppDomain.CurrentDomain.FriendlyName);
+ AppDomain app2 = AppDomain.CreateDomain("2");
+
if (!RemotingServices.IsTransparentProxy(app2))
return 1;
- ObjectHandle o = AppDomain.CurrentDomain.CreateInstance(typeof(R1).Assembly.FullName, typeof(R1).FullName);
- R1 myobj = (R1) o.Unwrap();
+ ObjectHandle o = AppDomain.CurrentDomain.CreateInstance(typeof(R1).Assembly.FullName, typeof(R1).FullName);
+ R1 myobj = (R1) o.Unwrap();
// should not be a proxy in our domain..
if (RemotingServices.IsTransparentProxy(myobj))
@@ -127,15 +127,15 @@ static int Main(string[] args)
return 2;
}
- o = app2.CreateInstance(typeof(R1).Assembly.FullName, typeof(R1).FullName);
-
- Console.WriteLine("type: " + o.GetType().ToString());
+ o = app2.CreateInstance(typeof(R1).Assembly.FullName, typeof(R1).FullName);
+
+ Console.WriteLine("type: " + o.GetType().ToString());
- myobj = (R1) o.Unwrap();
+ myobj = (R1) o.Unwrap();
if (!RemotingServices.IsTransparentProxy(myobj))
return 3;
-
- Console.WriteLine("unwrapped type: " + myobj.GetType().ToString());
+
+ Console.WriteLine("unwrapped type: " + myobj.GetType().ToString());
R2 r2 = null;
bool bSerExc = false;
@@ -152,9 +152,9 @@ static int Main(string[] args)
if (!bSerExc)
return 4;
-
+
Console.WriteLine("test-ok");
return 0;
- }
- }
-}
+ }
+ }
+}

0 comments on commit 46fb81b

Please sign in to comment.