summaryrefslogtreecommitdiffstats
path: root/remoting/signaling
diff options
context:
space:
mode:
authorrch <rch@chromium.org>2015-05-04 11:21:19 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-04 18:21:51 +0000
commitbce10d97d6fc5233071427cf622aaad7abde9e19 (patch)
tree1a7e41b41d241bdfa35914c8cac87469855bd0e9 /remoting/signaling
parenta6e05c977096a03774e5406d63ad80c0166f9adc (diff)
downloadchromium_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.cc8
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()));