diff options
Diffstat (limited to 'Slimber/UnitTest/LinkLocalPresenceManagerTest.cpp')
| -rw-r--r-- | Slimber/UnitTest/LinkLocalPresenceManagerTest.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Slimber/UnitTest/LinkLocalPresenceManagerTest.cpp b/Slimber/UnitTest/LinkLocalPresenceManagerTest.cpp index c8e7700..b1a51c9 100644 --- a/Slimber/UnitTest/LinkLocalPresenceManagerTest.cpp +++ b/Slimber/UnitTest/LinkLocalPresenceManagerTest.cpp | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2016 Isode Limited. | 2 | * Copyright (c) 2010-2018 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -225,7 +225,9 @@ class LinkLocalPresenceManagerTest : public CppUnit::TestFixture { | |||
| 225 | info.setFirstName(firstName); | 225 | info.setFirstName(firstName); |
| 226 | info.setLastName(lastName); | 226 | info.setLastName(lastName); |
| 227 | info.setNick(nickName); | 227 | info.setNick(nickName); |
| 228 | querier->setServiceInfo(service, DNSSDResolveServiceQuery::Result(name + "._presence._tcp.local", "rabbithole.local", 1234, info.toTXTRecord())); | 228 | auto txtRecord = info.toTXTRecord(); |
| 229 | CPPUNIT_ASSERT(txtRecord); | ||
| 230 | querier->setServiceInfo(service, DNSSDResolveServiceQuery::Result(name + "._presence._tcp.local", "rabbithole.local", 1234, *txtRecord)); | ||
| 229 | querier->addService(service); | 231 | querier->addService(service); |
| 230 | eventLoop->processEvents(); | 232 | eventLoop->processEvents(); |
| 231 | } | 233 | } |
| @@ -241,7 +243,9 @@ class LinkLocalPresenceManagerTest : public CppUnit::TestFixture { | |||
| 241 | LinkLocalServiceInfo info; | 243 | LinkLocalServiceInfo info; |
| 242 | info.setStatus(status); | 244 | info.setStatus(status); |
| 243 | info.setMessage(message); | 245 | info.setMessage(message); |
| 244 | querier->setServiceInfo(service, DNSSDResolveServiceQuery::Result(name + "._presence._tcp.local", "rabbithole.local", 1234, info.toTXTRecord())); | 246 | auto txtRecord = info.toTXTRecord(); |
| 247 | CPPUNIT_ASSERT(txtRecord); | ||
| 248 | querier->setServiceInfo(service, DNSSDResolveServiceQuery::Result(name + "._presence._tcp.local", "rabbithole.local", 1234, *txtRecord)); | ||
| 245 | eventLoop->processEvents(); | 249 | eventLoop->processEvents(); |
| 246 | } | 250 | } |
| 247 | 251 | ||
Swift