Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: net/quic/quic_http_stream_test.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_http_stream.h ('k') | net/quic/quic_http_utils_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_http_stream.h ('k') | net/quic/quic_http_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698