| 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 #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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 QuicStreamId last_good_stream_id, | 56 QuicStreamId last_good_stream_id, |
| 57 const std::string& reason)); | 57 const std::string& reason)); |
| 58 MOCK_METHOD0(OnCanWrite, bool()); | 58 MOCK_METHOD0(OnCanWrite, bool()); |
| 59 | 59 |
| 60 void ReallyProcessUdpPacket(const IPEndPoint& self_address, | 60 void ReallyProcessUdpPacket(const IPEndPoint& self_address, |
| 61 const IPEndPoint& peer_address, | 61 const IPEndPoint& peer_address, |
| 62 const QuicEncryptedPacket& packet) { | 62 const QuicEncryptedPacket& packet) { |
| 63 return QuicConnection::ProcessUdpPacket(self_address, peer_address, packet); | 63 return QuicConnection::ProcessUdpPacket(self_address, peer_address, packet); |
| 64 } | 64 } |
| 65 | 65 |
| 66 virtual bool OnProtocolVersionMismatch(QuicTag version) { return false; } | 66 virtual bool OnProtocolVersionMismatch(QuicVersion version) { return false; } |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 const bool has_mock_helper_; | 69 const bool has_mock_helper_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(MockConnection); | 71 DISALLOW_COPY_AND_ASSIGN(MockConnection); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 class TestDecompressorVisitor : public QuicSpdyDecompressor::Visitor { | 74 class TestDecompressorVisitor : public QuicSpdyDecompressor::Visitor { |
| 75 public: | 75 public: |
| 76 virtual ~TestDecompressorVisitor() {} | 76 virtual ~TestDecompressorVisitor() {} |
| (...skipping 26 matching lines...) Expand all Loading... |
| 103 private: | 103 private: |
| 104 QuicCryptoStream* crypto_stream_; | 104 QuicCryptoStream* crypto_stream_; |
| 105 DISALLOW_COPY_AND_ASSIGN(TestSession); | 105 DISALLOW_COPY_AND_ASSIGN(TestSession); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace test | 108 } // namespace test |
| 109 } // namespace tools | 109 } // namespace tools |
| 110 } // namespace net | 110 } // namespace net |
| 111 | 111 |
| 112 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 112 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |