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

Unified Diff: net/socket/socket_test_util.h

Issue 1135833004: Remove now unused DelayedSocketData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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
« no previous file with comments | « no previous file | net/socket/socket_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/socket_test_util.h
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
index a09b18a344ea485e834553637b9e599b1e42f359..f7e5039eebd7714d4c81184db2a59f1595842e65 100644
--- a/net/socket/socket_test_util.h
+++ b/net/socket/socket_test_util.h
@@ -333,54 +333,6 @@ struct SSLSocketDataProvider {
int connection_status;
};
-// A DataProvider where the client must write a request before the reads (e.g.
-// the response) will complete.
-class DelayedSocketData : public StaticSocketDataProvider {
- public:
- // |write_delay| the number of MockWrites to complete before allowing
- // a MockRead to complete.
- // |reads| the list of MockRead completions.
- // |writes| the list of MockWrite completions.
- // Note: For stream sockets, the MockRead list must end with a EOF, e.g., a
- // MockRead(true, 0, 0);
- DelayedSocketData(int write_delay,
- MockRead* reads,
- size_t reads_count,
- MockWrite* writes,
- size_t writes_count);
-
- // |connect| the result for the connect phase.
- // |reads| the list of MockRead completions.
- // |write_delay| the number of MockWrites to complete before allowing
- // a MockRead to complete.
- // |writes| the list of MockWrite completions.
- // Note: For stream sockets, the MockRead list must end with a EOF, e.g., a
- // MockRead(true, 0, 0);
- DelayedSocketData(const MockConnect& connect,
- int write_delay,
- MockRead* reads,
- size_t reads_count,
- MockWrite* writes,
- size_t writes_count);
- ~DelayedSocketData() override;
-
- void ForceNextRead();
-
- // StaticSocketDataProvider:
- MockRead OnRead() override;
- MockWriteResult OnWrite(const std::string& data) override;
- void Reset() override;
- void CompleteRead() override;
-
- private:
- int write_delay_;
- bool read_in_progress_;
-
- base::WeakPtrFactory<DelayedSocketData> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(DelayedSocketData);
-};
-
// Uses the sequence_number field in the mock reads and writes to
// complete the operations in a specified order.
class SequencedSocketData : public SocketDataProvider {
« no previous file with comments | « no previous file | net/socket/socket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698