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

Side by Side Diff: net/quic/core/quic_packet_generator_test.cc

Issue 2464683002: adds std:: to stl types (#049) (Closed)
Patch Set: Created 4 years, 1 month 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
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/core/quic_packet_generator.h" 5 #include "net/quic/core/quic_packet_generator.h"
6 6
7 #include <cstdint> 7 #include <cstdint>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 return ::net::MakeIOVector(s, &iov_); 207 return ::net::MakeIOVector(s, &iov_);
208 } 208 }
209 209
210 QuicFramer framer_; 210 QuicFramer framer_;
211 MockRandom random_; 211 MockRandom random_;
212 SimpleBufferAllocator buffer_allocator_; 212 SimpleBufferAllocator buffer_allocator_;
213 StrictMock<MockDelegate> delegate_; 213 StrictMock<MockDelegate> delegate_;
214 QuicPacketGenerator generator_; 214 QuicPacketGenerator generator_;
215 QuicPacketCreator* creator_; 215 QuicPacketCreator* creator_;
216 SimpleQuicFramer simple_framer_; 216 SimpleQuicFramer simple_framer_;
217 vector<SerializedPacket> packets_; 217 std::vector<SerializedPacket> packets_;
218 QuicAckFrame ack_frame_; 218 QuicAckFrame ack_frame_;
219 219
220 private: 220 private:
221 std::unique_ptr<char[]> data_array_; 221 std::unique_ptr<char[]> data_array_;
222 struct iovec iov_; 222 struct iovec iov_;
223 }; 223 };
224 224
225 class MockDebugDelegate : public QuicPacketCreator::DebugDelegate { 225 class MockDebugDelegate : public QuicPacketCreator::DebugDelegate {
226 public: 226 public:
227 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&)); 227 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&));
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 frame->error_details = error_details.as_string(); 886 frame->error_details = error_details.as_string();
887 EXPECT_CALL(delegate_, 887 EXPECT_CALL(delegate_,
888 OnUnrecoverableError(QUIC_FAILED_TO_SERIALIZE_PACKET, 888 OnUnrecoverableError(QUIC_FAILED_TO_SERIALIZE_PACKET,
889 "Single frame cannot fit into a packet", _)); 889 "Single frame cannot fit into a packet", _));
890 EXPECT_QUIC_BUG(generator_.AddControlFrame(QuicFrame(frame)), ""); 890 EXPECT_QUIC_BUG(generator_.AddControlFrame(QuicFrame(frame)), "");
891 EXPECT_TRUE(generator_.HasQueuedFrames()); 891 EXPECT_TRUE(generator_.HasQueuedFrames());
892 } 892 }
893 893
894 } // namespace test 894 } // namespace test
895 } // namespace net 895 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698