diff options
author | rch <rch@chromium.org> | 2015-05-04 11:21:19 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-04 18:21:51 +0000 |
commit | bce10d97d6fc5233071427cf622aaad7abde9e19 (patch) | |
tree | 1a7e41b41d241bdfa35914c8cac87469855bd0e9 /remoting/signaling | |
parent | a6e05c977096a03774e5406d63ad80c0166f9adc (diff) | |
download | chromium_src-bce10d97d6fc5233071427cf622aaad7abde9e19.zip chromium_src-bce10d97d6fc5233071427cf622aaad7abde9e19.tar.gz chromium_src-bce10d97d6fc5233071427cf622aaad7abde9e19.tar.bz2 |
Add AllReadDataConsumed and AllWriteDataConsumed methods to SocketDataProvider
so that all provider subclasses can have their state verified.
Review URL: https://codereview.chromium.org/1114383003
Cr-Commit-Position: refs/heads/master@{#328154}
Diffstat (limited to 'remoting/signaling')
-rw-r--r-- | remoting/signaling/xmpp_signal_strategy_unittest.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/remoting/signaling/xmpp_signal_strategy_unittest.cc b/remoting/signaling/xmpp_signal_strategy_unittest.cc index b4c4a53..2193982 100644 --- a/remoting/signaling/xmpp_signal_strategy_unittest.cc +++ b/remoting/signaling/xmpp_signal_strategy_unittest.cc @@ -29,6 +29,14 @@ class XmppSocketDataProvider: public net::SocketDataProvider { void Reset() override {} + bool AllReadDataConsumed() const override { + return true; + } + + bool AllWriteDataConsumed() const override { + return true; + } + void ReceiveData(const std::string& text) { socket()->OnReadComplete( net::MockRead(net::ASYNC, text.data(), text.size())); |