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

Side by Side Diff: net/quic/quic_crypto_stream_test.cc

Issue 1433433003: Rename MockHelper to the more descriptive (and more consistent with other Mock classes) MockConnect… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106414015
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/quic_flow_controller_test.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 #include "net/quic/quic_crypto_stream.h" 5 #include "net/quic/quic_crypto_stream.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 message_.SetStringPiece(2, "def"); 54 message_.SetStringPiece(2, "def");
55 ConstructHandshakeMessage(); 55 ConstructHandshakeMessage();
56 } 56 }
57 57
58 void ConstructHandshakeMessage() { 58 void ConstructHandshakeMessage() {
59 CryptoFramer framer; 59 CryptoFramer framer;
60 message_data_.reset(framer.ConstructHandshakeMessage(message_)); 60 message_data_.reset(framer.ConstructHandshakeMessage(message_));
61 } 61 }
62 62
63 protected: 63 protected:
64 MockHelper helper_; 64 MockConnectionHelper helper_;
65 MockConnection* connection_; 65 MockConnection* connection_;
66 MockQuicSpdySession session_; 66 MockQuicSpdySession session_;
67 MockQuicCryptoStream stream_; 67 MockQuicCryptoStream stream_;
68 CryptoHandshakeMessage message_; 68 CryptoHandshakeMessage message_;
69 scoped_ptr<QuicData> message_data_; 69 scoped_ptr<QuicData> message_data_;
70 70
71 private: 71 private:
72 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStreamTest); 72 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStreamTest);
73 }; 73 };
74 74
(...skipping 29 matching lines...) Expand all
104 } 104 }
105 105
106 TEST_F(QuicCryptoStreamTest, NoConnectionLevelFlowControl) { 106 TEST_F(QuicCryptoStreamTest, NoConnectionLevelFlowControl) {
107 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl( 107 EXPECT_FALSE(ReliableQuicStreamPeer::StreamContributesToConnectionFlowControl(
108 &stream_)); 108 &stream_));
109 } 109 }
110 110
111 } // namespace 111 } // namespace
112 } // namespace test 112 } // namespace test
113 } // namespace net 113 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_server_stream_test.cc ('k') | net/quic/quic_flow_controller_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698