diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-02-16 09:05:37 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-02-17 08:05:08 (GMT) |
commit | 5a334fd9b676564a8915baad312d92bd86358eec (patch) | |
tree | aaecbbccd9cddcb843c126b8c022f1d1e667efde /Swiften/Chat/UnitTest | |
parent | 231c2cb6d00061e70860626467107f4c63f359a0 (diff) | |
download | swift-contrib-5a334fd9b676564a8915baad312d92bd86358eec.zip swift-contrib-5a334fd9b676564a8915baad312d92bd86358eec.tar.bz2 |
Preliminary Chat State Notifications support.
Only covers Active and Composing (Which is very possibly all we care about).
Diffstat (limited to 'Swiften/Chat/UnitTest')
-rw-r--r-- | Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp b/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp index bacfc3a..44ec9d8 100644 --- a/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp +++ b/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp @@ -18,15 +18,15 @@ public: int composingCallCount; int activeCallCount; - ChatStateNotifier::ChatState currentState; + ChatState::ChatStateType currentState; private: - void handleChatStateChanged(ChatStateNotifier::ChatState newState) { + void handleChatStateChanged(ChatState::ChatStateType newState) { switch (newState) { - case ChatStateNotifier::Composing: + case ChatState::Composing: composingCallCount++; break; - case ChatStateNotifier::Active: + case ChatState::Active: activeCallCount++; break; default: @@ -86,7 +86,7 @@ public: notifier_->userCancelledNewMessage(); CPPUNIT_ASSERT_EQUAL(1, monitor_->composingCallCount); CPPUNIT_ASSERT_EQUAL(1, monitor_->activeCallCount); - CPPUNIT_ASSERT_EQUAL(ChatStateNotifier::Active, monitor_->currentState); + CPPUNIT_ASSERT_EQUAL(ChatState::Active, monitor_->currentState); } |