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 <algorithm> | 5 #include <algorithm> |
6 #include <map> | 6 #include <map> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE { | 219 virtual void OnRstStreamFrame(const QuicRstStreamFrame& frame) OVERRIDE { |
220 rst_stream_frame_ = frame; | 220 rst_stream_frame_ = frame; |
221 } | 221 } |
222 | 222 |
223 virtual void OnConnectionCloseFrame( | 223 virtual void OnConnectionCloseFrame( |
224 const QuicConnectionCloseFrame& frame) OVERRIDE { | 224 const QuicConnectionCloseFrame& frame) OVERRIDE { |
225 connection_close_frame_ = frame; | 225 connection_close_frame_ = frame; |
226 } | 226 } |
227 | 227 |
228 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) { | 228 virtual void OnGoAwayFrame(const QuicGoAwayFrame& frame) OVERRIDE { |
229 goaway_frame_ = frame; | 229 goaway_frame_ = frame; |
230 } | 230 } |
231 | 231 |
232 // Counters from the visitor_ callbacks. | 232 // Counters from the visitor_ callbacks. |
233 int error_count_; | 233 int error_count_; |
234 int packet_count_; | 234 int packet_count_; |
235 int frame_count_; | 235 int frame_count_; |
236 int fec_count_; | 236 int fec_count_; |
237 int complete_packets_; | 237 int complete_packets_; |
238 int revived_packets_; | 238 int revived_packets_; |
(...skipping 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2688 EXPECT_EQ(QUIC_NO_ERROR, framer_.error()); | 2688 EXPECT_EQ(QUIC_NO_ERROR, framer_.error()); |
2689 ASSERT_TRUE(visitor_.header_.get()); | 2689 ASSERT_TRUE(visitor_.header_.get()); |
2690 EXPECT_TRUE(visitor_.header_->fec_flag); | 2690 EXPECT_TRUE(visitor_.header_->fec_flag); |
2691 EXPECT_TRUE(visitor_.header_->entropy_flag); | 2691 EXPECT_TRUE(visitor_.header_->entropy_flag); |
2692 EXPECT_TRUE(visitor_.header_->fec_entropy_flag); | 2692 EXPECT_TRUE(visitor_.header_->fec_entropy_flag); |
2693 EXPECT_EQ(1 << 4, visitor_.header_->entropy_hash); | 2693 EXPECT_EQ(1 << 4, visitor_.header_->entropy_hash); |
2694 }; | 2694 }; |
2695 | 2695 |
2696 } // namespace test | 2696 } // namespace test |
2697 } // namespace net | 2697 } // namespace net |
OLD | NEW |