summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-11-10 17:20:25 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-11-10 17:20:25 +0000
commit326cf15e58c699fb2fb62181fcdd47339ec60c15 (patch)
treecce47d17d8513b4ad6bec19197148d5ae0094272 /test
parent430fa04b85e6659995328792bd0ad5cffbd75921 (diff)
Support for ListRemoteDevices and ListRecentRemoteDevices
Diffstat (limited to 'test')
-rwxr-xr-xtest/apitest15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/apitest b/test/apitest
index 6d16e7ac..1c955136 100755
--- a/test/apitest
+++ b/test/apitest
@@ -55,7 +55,9 @@ dev_cmds = [ "GetAddress",
"GetEncryptionKeySize",
"DiscoverDevices",
"DiscoverDevicesWithoutNameResolving",
- "CancelDiscovery" ]
+ "CancelDiscovery",
+ "ListRemoteDevices",
+ "ListRecentRemoteDevices" ]
dev_signals = [ "ModeChanged",
"NameChanged",
"MinorClassChanged",
@@ -386,6 +388,17 @@ class Tester:
print self.device.DiscoverDevices()
elif self.cmd == 'DiscoverDevicesWithoutNameResolving':
print self.device.DiscoverDevicesWithoutNameResolving()
+ elif self.cmd == 'ListRemoteDevices':
+ devices = self.device.ListRemoteDevices()
+ for device in devices:
+ print device,
+ elif self.cmd == 'ListRecentRemoteDevices':
+ if len(self.cmd_args) == 1:
+ devices = self.device.ListRecentRemoteDevices(self.cmd_args[0])
+ for device in devices:
+ print device,
+ else:
+ print 'Usage: %s -i <dev> ListRecentRemoteDevices date' % self.name
else:
# FIXME: remove at future version
print 'Script Error: Method %s not found. Maybe a mispelled word.' % (self.cmd_args)