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 // Common utilities for Quic tests | 5 // Common utilities for Quic tests |
6 | 6 |
7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 private: | 81 private: |
82 SaveType* name_; | 82 SaveType* name_; |
83 SaveType value_; | 83 SaveType value_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(ValueRestore); | 85 DISALLOW_COPY_AND_ASSIGN(ValueRestore); |
86 }; | 86 }; |
87 | 87 |
88 class MockFramerVisitor : public QuicFramerVisitorInterface { | 88 class MockFramerVisitor : public QuicFramerVisitorInterface { |
89 public: | 89 public: |
90 MockFramerVisitor(); | 90 MockFramerVisitor(); |
91 ~MockFramerVisitor(); | 91 virtual ~MockFramerVisitor(); |
92 | 92 |
93 MOCK_METHOD1(OnError, void(QuicFramer* framer)); | 93 MOCK_METHOD1(OnError, void(QuicFramer* framer)); |
94 // The constructor sets this up to return false by default. | 94 // The constructor sets this up to return false by default. |
95 MOCK_METHOD1(OnProtocolVersionMismatch, bool(QuicVersion version)); | 95 MOCK_METHOD1(OnProtocolVersionMismatch, bool(QuicVersion version)); |
96 MOCK_METHOD0(OnPacket, void()); | 96 MOCK_METHOD0(OnPacket, void()); |
97 MOCK_METHOD1(OnPublicResetPacket, void(const QuicPublicResetPacket& header)); | 97 MOCK_METHOD1(OnPublicResetPacket, void(const QuicPublicResetPacket& header)); |
98 MOCK_METHOD1(OnVersionNegotiationPacket, | 98 MOCK_METHOD1(OnVersionNegotiationPacket, |
99 void(const QuicVersionNegotiationPacket& packet)); | 99 void(const QuicVersionNegotiationPacket& packet)); |
100 MOCK_METHOD0(OnRevivedPacket, void()); | 100 MOCK_METHOD0(OnRevivedPacket, void()); |
101 // The constructor sets this up to return true by default. | 101 // The constructor sets this up to return true by default. |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 MockAckNotifierDelegate(); | 463 MockAckNotifierDelegate(); |
464 virtual ~MockAckNotifierDelegate(); | 464 virtual ~MockAckNotifierDelegate(); |
465 | 465 |
466 MOCK_METHOD0(OnAckNotification, void()); | 466 MOCK_METHOD0(OnAckNotification, void()); |
467 }; | 467 }; |
468 | 468 |
469 } // namespace test | 469 } // namespace test |
470 } // namespace net | 470 } // namespace net |
471 | 471 |
472 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 472 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
OLD | NEW |