| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |