mirror of
https://github.com/darlinghq/darling-dbuskit.git
synced 2024-11-23 12:19:40 +00:00
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:
parent
a4445f16b5
commit
d84b9d12ed
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user