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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "net/quic/congestion_control/loss_detection_interface.h" | 14 #include "net/quic/congestion_control/loss_detection_interface.h" |
15 #include "net/quic/congestion_control/send_algorithm_interface.h" | 15 #include "net/quic/congestion_control/send_algorithm_interface.h" |
16 #include "net/quic/quic_ack_notifier.h" | 16 #include "net/quic/quic_ack_notifier.h" |
17 #include "net/quic/quic_client_session_base.h" | 17 #include "net/quic/quic_client_session_base.h" |
18 #include "net/quic/quic_connection.h" | 18 #include "net/quic/quic_connection.h" |
19 #include "net/quic/quic_framer.h" | 19 #include "net/quic/quic_framer.h" |
| 20 #include "net/quic/quic_sent_packet_manager.h" |
20 #include "net/quic/quic_session.h" | 21 #include "net/quic/quic_session.h" |
21 #include "net/quic/test_tools/mock_clock.h" | 22 #include "net/quic/test_tools/mock_clock.h" |
22 #include "net/quic/test_tools/mock_random.h" | 23 #include "net/quic/test_tools/mock_random.h" |
23 #include "net/spdy/spdy_framer.h" | 24 #include "net/spdy/spdy_framer.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
25 | 26 |
26 namespace net { | 27 namespace net { |
27 | 28 |
28 namespace test { | 29 namespace test { |
29 | 30 |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 QuicTime::Delta delta_largest_observed)); | 524 QuicTime::Delta delta_largest_observed)); |
524 | 525 |
525 protected: | 526 protected: |
526 // Object is ref counted. | 527 // Object is ref counted. |
527 virtual ~MockAckNotifierDelegate(); | 528 virtual ~MockAckNotifierDelegate(); |
528 | 529 |
529 private: | 530 private: |
530 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate); | 531 DISALLOW_COPY_AND_ASSIGN(MockAckNotifierDelegate); |
531 }; | 532 }; |
532 | 533 |
| 534 class MockNetworkChangeVisitor : |
| 535 public QuicSentPacketManager::NetworkChangeVisitor { |
| 536 public: |
| 537 MockNetworkChangeVisitor(); |
| 538 virtual ~MockNetworkChangeVisitor(); |
| 539 |
| 540 MOCK_METHOD1(OnCongestionWindowChange, void(QuicByteCount)); |
| 541 |
| 542 private: |
| 543 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); |
| 544 }; |
| 545 |
533 } // namespace test | 546 } // namespace test |
534 } // namespace net | 547 } // namespace net |
535 | 548 |
536 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 549 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
OLD | NEW |