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

Unified Diff: net/socket/socket_test_util.h

Issue 10795012: Modify DeterministicSocketData to verify that the sequence number of reads and writes start at zero… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 384452c084e13960a87c090e0842bc73241b15d0..51b02ba5960739b5adfcecb745158a759f9893b3 100644
--- a/net/socket/socket_test_util.h
+++ b/net/socket/socket_test_util.h
@@ -217,7 +217,14 @@ class StaticSocketDataProvider : public SocketDataProvider {
virtual MockWriteResult OnWrite(const std::string& data) OVERRIDE;
virtual void Reset() OVERRIDE;
+ protected:
+ StaticSocketDataProvider(bool verify_sequence_numbers,
+ MockRead* reads, size_t reads_count,
+ MockWrite* writes, size_t writes_count);
Ryan Sleevi 2012/07/18 18:02:13 Is there a reason this isn't the default behaviour
Ryan Hamilton 2012/07/18 18:45:06 It's not the default behavior because StaticSocket
+
private:
+ void VerifyCorrectSequenceNumbers();
+
MockRead* reads_;
size_t read_index_;
size_t read_count_;

Powered by Google App Engine
This is Rietveld 408576698