Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1362)

Unified Diff: net/socket/socket_test_util.h

Issue 1113203002: Convert DnsTransactionTest to use SequencedSocketData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/socket/socket_test_util.h
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
index 3bd88d2772f751a822613c856d5e2c2f98da90e1..0858b6ea8106eea0721f667197c81e63328549e9 100644
--- a/net/socket/socket_test_util.h
+++ b/net/socket/socket_test_util.h
@@ -500,6 +500,10 @@ class SequencedSocketData : public SocketDataProvider {
MockWriteResult OnWrite(const std::string& data) override;
void Reset() override;
+ // Returns true if any data was written to the socket, even if the write
+ // has not completed.
+ bool WasDataWritten() const;
+
// Returns true if all data has been read.
bool at_read_eof() const;

Powered by Google App Engine
This is Rietveld 408576698