| 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/tools/quic/test_tools/quic_test_utils.h" | 5 #include "net/tools/quic/test_tools/quic_test_utils.h" |
| 6 | 6 |
| 7 #include "base/sha1.h" | 7 #include "base/sha1.h" |
| 8 #include "net/quic/quic_connection.h" | 8 #include "net/quic/quic_connection.h" |
| 9 #include "net/quic/test_tools/quic_connection_peer.h" | 9 #include "net/quic/test_tools/quic_connection_peer.h" |
| 10 #include "net/quic/test_tools/quic_test_utils.h" | 10 #include "net/quic/test_tools/quic_test_utils.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 QuicCryptoStream* TestSession::GetCryptoStream() { | 89 QuicCryptoStream* TestSession::GetCryptoStream() { |
| 90 return crypto_stream_; | 90 return crypto_stream_; |
| 91 } | 91 } |
| 92 | 92 |
| 93 MockPacketWriter::MockPacketWriter() { | 93 MockPacketWriter::MockPacketWriter() { |
| 94 } | 94 } |
| 95 | 95 |
| 96 MockPacketWriter::~MockPacketWriter() { | 96 MockPacketWriter::~MockPacketWriter() { |
| 97 } | 97 } |
| 98 | 98 |
| 99 MockQuicSessionOwner::MockQuicSessionOwner() { | 99 MockQuicServerSessionVisitor::MockQuicServerSessionVisitor() { |
| 100 } | 100 } |
| 101 | 101 |
| 102 MockQuicSessionOwner::~MockQuicSessionOwner() { | 102 MockQuicServerSessionVisitor::~MockQuicServerSessionVisitor() { |
| 103 } | 103 } |
| 104 | 104 |
| 105 bool TestDecompressorVisitor::OnDecompressedData(StringPiece data) { | 105 bool TestDecompressorVisitor::OnDecompressedData(StringPiece data) { |
| 106 data.AppendToString(&data_); | 106 data.AppendToString(&data_); |
| 107 return true; | 107 return true; |
| 108 } | 108 } |
| 109 | 109 |
| 110 void TestDecompressorVisitor::OnDecompressionError() { | 110 void TestDecompressorVisitor::OnDecompressionError() { |
| 111 error_ = true; | 111 error_ = true; |
| 112 } | 112 } |
| 113 | 113 |
| 114 MockAckNotifierDelegate::MockAckNotifierDelegate() { | 114 MockAckNotifierDelegate::MockAckNotifierDelegate() { |
| 115 } | 115 } |
| 116 | 116 |
| 117 MockAckNotifierDelegate::~MockAckNotifierDelegate() { | 117 MockAckNotifierDelegate::~MockAckNotifierDelegate() { |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace test | 120 } // namespace test |
| 121 } // namespace tools | 121 } // namespace tools |
| 122 } // namespace net | 122 } // namespace net |
| OLD | NEW |