Index: talk/app/webrtc/test/mockpeerconnectionobservers.h |
diff --git a/talk/app/webrtc/test/mockpeerconnectionobservers.h b/talk/app/webrtc/test/mockpeerconnectionobservers.h |
index 580a0fbb85bfd25b257d01c5e9a8bb16a9ace63c..d2697b4364efcaa62e68f96609703cac30b66cf1 100644 |
--- a/talk/app/webrtc/test/mockpeerconnectionobservers.h |
+++ b/talk/app/webrtc/test/mockpeerconnectionobservers.h |
@@ -98,8 +98,10 @@ class MockDataChannelObserver : public webrtc::DataChannelObserver { |
channel_->UnregisterObserver(); |
} |
- virtual void OnStateChange() { state_ = channel_->state(); } |
- virtual void OnMessage(const DataBuffer& buffer) { |
+ void OnBufferedAmountChange(uint64 previous_amount) override {} |
+ |
+ void OnStateChange() override { state_ = channel_->state(); } |
+ void OnMessage(const DataBuffer& buffer) override { |
last_message_.assign(buffer.data.data<char>(), buffer.data.size()); |
++received_message_count_; |
} |