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

Side by Side Diff: media/cast/net/pacing/paced_sender_unittest.cc

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <deque> 9 #include <deque>
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 return true; 163 return true;
164 } 164 }
165 165
166 return mock_transport_.expecting_nothing_else(); 166 return mock_transport_.expecting_nothing_else();
167 } 167 }
168 168
169 std::vector<PacketEvent> packet_events_; 169 std::vector<PacketEvent> packet_events_;
170 base::SimpleTestTickClock testing_clock_; 170 base::SimpleTestTickClock testing_clock_;
171 TestPacketSender mock_transport_; 171 TestPacketSender mock_transport_;
172 scoped_refptr<FakeSingleThreadTaskRunner> task_runner_; 172 scoped_refptr<FakeSingleThreadTaskRunner> task_runner_;
173 scoped_ptr<PacedSender> paced_sender_; 173 std::unique_ptr<PacedSender> paced_sender_;
174 174
175 DISALLOW_COPY_AND_ASSIGN(PacedSenderTest); 175 DISALLOW_COPY_AND_ASSIGN(PacedSenderTest);
176 }; 176 };
177 177
178 } // namespace 178 } // namespace
179 179
180 TEST_F(PacedSenderTest, PassThroughRtcp) { 180 TEST_F(PacedSenderTest, PassThroughRtcp) {
181 SendPacketVector packets = CreateSendPacketVector(kSize1, 1, true); 181 SendPacketVector packets = CreateSendPacketVector(kSize1, 1, true);
182 182
183 mock_transport_.AddExpectedSizesAndPacketIds(kSize1, UINT16_C(0), 1); 183 mock_transport_.AddExpectedSizesAndPacketIds(kSize1, UINT16_C(0), 1);
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 first_ten_packets.push_back(packets[i]); 535 first_ten_packets.push_back(packets[i]);
536 mock_transport_.AddExpectedSizesAndPacketIds(kSize1, UINT16_C(0), 2); 536 mock_transport_.AddExpectedSizesAndPacketIds(kSize1, UINT16_C(0), 2);
537 mock_transport_.AddExpectedSizesAndPacketIds(kSize1, UINT16_C(4), 6); 537 mock_transport_.AddExpectedSizesAndPacketIds(kSize1, UINT16_C(4), 6);
538 mock_transport_.AddExpectedSizesAndPacketIds(kSize1, UINT16_C(2), 2); 538 mock_transport_.AddExpectedSizesAndPacketIds(kSize1, UINT16_C(2), 2);
539 SendWithoutBursting(first_ten_packets); 539 SendWithoutBursting(first_ten_packets);
540 ASSERT_TRUE(mock_transport_.expecting_nothing_else()); 540 ASSERT_TRUE(mock_transport_.expecting_nothing_else());
541 } 541 }
542 542
543 } // namespace cast 543 } // namespace cast
544 } // namespace media 544 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/net/pacing/paced_sender.h ('k') | media/cast/net/rtcp/receiver_rtcp_event_subscriber_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698