diff options
Diffstat (limited to 'Swiften/LinkLocal/UnitTest/LinkLocalServiceTest.cpp')
| -rw-r--r-- | Swiften/LinkLocal/UnitTest/LinkLocalServiceTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Swiften/LinkLocal/UnitTest/LinkLocalServiceTest.cpp b/Swiften/LinkLocal/UnitTest/LinkLocalServiceTest.cpp index 206d824..cb5f40a 100644 --- a/Swiften/LinkLocal/UnitTest/LinkLocalServiceTest.cpp +++ b/Swiften/LinkLocal/UnitTest/LinkLocalServiceTest.cpp | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 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 | */ |
| @@ -58,10 +58,12 @@ class LinkLocalServiceTest : public CppUnit::TestFixture { | |||
| 58 | info.setFirstName(firstName); | 58 | info.setFirstName(firstName); |
| 59 | info.setLastName(lastName); | 59 | info.setLastName(lastName); |
| 60 | info.setNick(nickName); | 60 | info.setNick(nickName); |
| 61 | auto txtRecord = info.toTXTRecord(); | ||
| 62 | CPPUNIT_ASSERT(txtRecord); | ||
| 61 | return LinkLocalService(service, | 63 | return LinkLocalService(service, |
| 62 | DNSSDResolveServiceQuery::Result( | 64 | DNSSDResolveServiceQuery::Result( |
| 63 | name + "._presence._tcp.local", "rabbithole.local", 1234, | 65 | name + "._presence._tcp.local", "rabbithole.local", 1234, |
| 64 | info.toTXTRecord())); | 66 | *txtRecord)); |
| 65 | } | 67 | } |
| 66 | }; | 68 | }; |
| 67 | 69 | ||
Swift