diff options
Diffstat (limited to 'Swift/Controllers/Chat/UnitTest')
| -rw-r--r-- | Swift/Controllers/Chat/UnitTest/ChattablesTest.cpp | 3 | ||||
| -rw-r--r-- | Swift/Controllers/Chat/UnitTest/MockChatListWindow.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Swift/Controllers/Chat/UnitTest/ChattablesTest.cpp b/Swift/Controllers/Chat/UnitTest/ChattablesTest.cpp index e052aff..f30e3fd 100644 --- a/Swift/Controllers/Chat/UnitTest/ChattablesTest.cpp +++ b/Swift/Controllers/Chat/UnitTest/ChattablesTest.cpp | |||
| @@ -9,6 +9,9 @@ | |||
| 9 | 9 | ||
| 10 | #include <Swift/Controllers/Chat/Chattables.h> | 10 | #include <Swift/Controllers/Chat/Chattables.h> |
| 11 | 11 | ||
| 12 | // Clang wrongly things that tests for 0 are using 0 as null. | ||
| 13 | #pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" | ||
| 14 | |||
| 12 | using namespace Swift; | 15 | using namespace Swift; |
| 13 | 16 | ||
| 14 | class ChattablesTest : public ::testing::Test { | 17 | class ChattablesTest : public ::testing::Test { |
diff --git a/Swift/Controllers/Chat/UnitTest/MockChatListWindow.h b/Swift/Controllers/Chat/UnitTest/MockChatListWindow.h index 395b050..1d980d3 100644 --- a/Swift/Controllers/Chat/UnitTest/MockChatListWindow.h +++ b/Swift/Controllers/Chat/UnitTest/MockChatListWindow.h | |||
| @@ -20,7 +20,7 @@ namespace Swift { | |||
| 20 | void removeWhiteboardSession(const JID& /*jid*/) {} | 20 | void removeWhiteboardSession(const JID& /*jid*/) {} |
| 21 | void setBookmarksEnabled(bool /*enabled*/) {} | 21 | void setBookmarksEnabled(bool /*enabled*/) {} |
| 22 | void setRecents(const std::list<ChatListWindow::Chat>& /*recents*/) {} | 22 | void setRecents(const std::list<ChatListWindow::Chat>& /*recents*/) {} |
| 23 | void setUnreadCount(int /*unread*/) {} | 23 | void setUnreadCount(size_t /*unread*/) {} |
| 24 | void clearBookmarks() {} | 24 | void clearBookmarks() {} |
| 25 | void setOnline(bool /*isOnline*/) {} | 25 | void setOnline(bool /*isOnline*/) {} |
| 26 | }; | 26 | }; |
Swift