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

Side by Side Diff: net/tools/quic/test_tools/quic_test_utils.h

Issue 100173005: Break out the basic reliable QUIC stream functionality from the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 DISALLOW_COPY_AND_ASSIGN(MockConnection); 98 DISALLOW_COPY_AND_ASSIGN(MockConnection);
99 }; 99 };
100 100
101 class TestSession : public QuicSession { 101 class TestSession : public QuicSession {
102 public: 102 public:
103 TestSession(QuicConnection* connection, 103 TestSession(QuicConnection* connection,
104 const QuicConfig& config, 104 const QuicConfig& config,
105 bool is_server); 105 bool is_server);
106 virtual ~TestSession(); 106 virtual ~TestSession();
107 107
108 MOCK_METHOD1(CreateIncomingReliableStream, 108 MOCK_METHOD1(CreateIncomingDataStream, QuicDataStream*(QuicStreamId id));
109 ReliableQuicStream*(QuicStreamId id)); 109 MOCK_METHOD0(CreateOutgoingDataStream, QuicDataStream*());
110 MOCK_METHOD0(CreateOutgoingReliableStream, ReliableQuicStream*());
111 110
112 void SetCryptoStream(QuicCryptoStream* stream); 111 void SetCryptoStream(QuicCryptoStream* stream);
113 112
114 virtual QuicCryptoStream* GetCryptoStream(); 113 virtual QuicCryptoStream* GetCryptoStream();
115 114
116 private: 115 private:
117 QuicCryptoStream* crypto_stream_; 116 QuicCryptoStream* crypto_stream_;
118 DISALLOW_COPY_AND_ASSIGN(TestSession); 117 DISALLOW_COPY_AND_ASSIGN(TestSession);
119 }; 118 };
120 119
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual ~MockAckNotifierDelegate(); 158 virtual ~MockAckNotifierDelegate();
160 159
161 MOCK_METHOD0(OnAckNotification, void()); 160 MOCK_METHOD0(OnAckNotification, void());
162 }; 161 };
163 162
164 } // namespace test 163 } // namespace test
165 } // namespace tools 164 } // namespace tools
166 } // namespace net 165 } // namespace net
167 166
168 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 167 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698