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

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

Issue 110373004: Remove redundant |is_server| argument from TestSession and call 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/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/test_tools/quic_test_utils.cc » ('j') | 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 private: 88 private:
89 scoped_ptr<QuicPacketWriter> writer_; 89 scoped_ptr<QuicPacketWriter> writer_;
90 scoped_ptr<QuicConnectionHelperInterface> helper_; 90 scoped_ptr<QuicConnectionHelperInterface> helper_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(MockConnection); 92 DISALLOW_COPY_AND_ASSIGN(MockConnection);
93 }; 93 };
94 94
95 class TestSession : public QuicSession { 95 class TestSession : public QuicSession {
96 public: 96 public:
97 TestSession(QuicConnection* connection, 97 TestSession(QuicConnection* connection, const QuicConfig& config);
98 const QuicConfig& config,
99 bool is_server);
100 virtual ~TestSession(); 98 virtual ~TestSession();
101 99
102 MOCK_METHOD1(CreateIncomingDataStream, QuicDataStream*(QuicStreamId id)); 100 MOCK_METHOD1(CreateIncomingDataStream, QuicDataStream*(QuicStreamId id));
103 MOCK_METHOD0(CreateOutgoingDataStream, QuicDataStream*()); 101 MOCK_METHOD0(CreateOutgoingDataStream, QuicDataStream*());
104 102
105 void SetCryptoStream(QuicCryptoStream* stream); 103 void SetCryptoStream(QuicCryptoStream* stream);
106 104
107 virtual QuicCryptoStream* GetCryptoStream(); 105 virtual QuicCryptoStream* GetCryptoStream();
108 106
109 private: 107 private:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 virtual ~MockAckNotifierDelegate(); 150 virtual ~MockAckNotifierDelegate();
153 151
154 MOCK_METHOD0(OnAckNotification, void()); 152 MOCK_METHOD0(OnAckNotification, void());
155 }; 153 };
156 154
157 } // namespace test 155 } // namespace test
158 } // namespace tools 156 } // namespace tools
159 } // namespace net 157 } // namespace net
160 158
161 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 159 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698