At test for type conversion.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/dbuskit/trunk@33890 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Niels Grewe 2011-09-25 13:49:39 +00:00
parent a4445f16b5
commit d84b9d12ed
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-09-25 Niels Grewe <niels.grewe@halbordnung.de>
* Tests/TestDKProxy.m: Type conversion test.
2011-09-25 Niels Grewe <niels.grewe@halbordnung.de>
* Source/DKBoxingUtils.h

View File

@ -54,6 +54,7 @@
- (NSString*)ListNames;
- (char*)GetNameOwner: (char*)name;
- (BOOL)NameHasOwner: (NSString*)name;
- (int64_t)GetConnectionUnixUser: (NSString*)name;
@end
@implementation DKProxy (ArpWrapping)
@ -120,6 +121,22 @@
UKTrue([returnValue length] > 0);
}
-(void)testTypeConvertingMessageSend
{
NSConnection *conn = nil;
id aProxy = nil;
int64_t returnValue = 0;
NSWarnMLog(@"This test is an expected failure if the session message bus has no peer with the unique name ':1.1'!");
conn = [NSConnection connectionWithReceivePort: [DKPort port]
sendPort: [[[DKPort alloc] initWithRemote: @"org.freedesktop.DBus"] autorelease]];
aProxy = [conn rootProxy];
UKDoesNotRaiseException(returnValue = [aProxy GetConnectionUnixUser: @":1.1"]);
UKTrue(returnValue > 0);
}
- (void)testBuildMethodCache
{
NSConnection *conn = nil;