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/quic/quic_http_stream.h" | 5 #include "net/quic/quic_http_stream.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 using testing::_; | 51 using testing::_; |
52 using testing::AnyNumber; | 52 using testing::AnyNumber; |
53 using testing::Return; | 53 using testing::Return; |
54 | 54 |
55 namespace net { | 55 namespace net { |
56 namespace test { | 56 namespace test { |
57 namespace { | 57 namespace { |
58 | 58 |
59 const char kUploadData[] = "Really nifty data!"; | 59 const char kUploadData[] = "Really nifty data!"; |
60 const char kDefaultServerHostName[] = "www.google.com"; | 60 const char kDefaultServerHostName[] = "www.google.com"; |
61 const uint16 kDefaultServerPort = 80; | 61 const uint16_t kDefaultServerPort = 80; |
62 | 62 |
63 class TestQuicConnection : public QuicConnection { | 63 class TestQuicConnection : public QuicConnection { |
64 public: | 64 public: |
65 TestQuicConnection(const QuicVersionVector& versions, | 65 TestQuicConnection(const QuicVersionVector& versions, |
66 QuicConnectionId connection_id, | 66 QuicConnectionId connection_id, |
67 IPEndPoint address, | 67 IPEndPoint address, |
68 QuicConnectionHelper* helper, | 68 QuicConnectionHelper* helper, |
69 const QuicConnection::PacketWriterFactory& writer_factory) | 69 const QuicConnection::PacketWriterFactory& writer_factory) |
70 : QuicConnection(connection_id, | 70 : QuicConnection(connection_id, |
71 address, | 71 address, |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 reliable_stream->SetDelegate(nullptr); | 946 reliable_stream->SetDelegate(nullptr); |
947 DCHECK_EQ(kV3HighestPriority, reliable_stream->Priority()); | 947 DCHECK_EQ(kV3HighestPriority, reliable_stream->Priority()); |
948 reliable_stream->SetDelegate(delegate); | 948 reliable_stream->SetDelegate(delegate); |
949 | 949 |
950 EXPECT_EQ(0, stream_->GetTotalSentBytes()); | 950 EXPECT_EQ(0, stream_->GetTotalSentBytes()); |
951 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); | 951 EXPECT_EQ(0, stream_->GetTotalReceivedBytes()); |
952 } | 952 } |
953 | 953 |
954 } // namespace test | 954 } // namespace test |
955 } // namespace net | 955 } // namespace net |
OLD | NEW |