| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |