summaryrefslogtreecommitdiffstats
path: root/remoting/signaling/xmpp_signal_strategy_unittest.cc
diff options
context:
space:
mode:
authorrch <rch@chromium.org>2015-05-05 10:25:00 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-05 17:26:34 +0000
commit269875cf0d23881a7ad119bae730ff54fdd4dd0b (patch)
treebb4062549fa5b1f0bf06274a8e830dcf256a8721 /remoting/signaling/xmpp_signal_strategy_unittest.cc
parent5111245568b5c30928822555446bc3b61a4a8780 (diff)
downloadchromium_src-269875cf0d23881a7ad119bae730ff54fdd4dd0b.zip
chromium_src-269875cf0d23881a7ad119bae730ff54fdd4dd0b.tar.gz
chromium_src-269875cf0d23881a7ad119bae730ff54fdd4dd0b.tar.bz2
Add AllReadDataConsumed and AllWriteDataConsumed methods to SocketDataProvider
so that all provider subclasses can have their state verified. Committed: https://crrev.com/bce10d97d6fc5233071427cf622aaad7abde9e19 Cr-Commit-Position: refs/heads/master@{#328154} Review URL: https://codereview.chromium.org/1114383003 Cr-Commit-Position: refs/heads/master@{#328351}
Diffstat (limited to 'remoting/signaling/xmpp_signal_strategy_unittest.cc')
-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()));