| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/test/simple_test_tick_clock.h" | 6 #include "base/test/simple_test_tick_clock.h" |
| 7 #include "media/cast/cast_defines.h" | 7 #include "media/cast/cast_defines.h" |
| 8 #include "media/cast/cast_environment.h" | 8 #include "media/cast/cast_environment.h" |
| 9 #include "media/cast/rtcp/receiver_rtcp_event_subscriber.h" | 9 #include "media/cast/rtcp/receiver_rtcp_event_subscriber.h" |
| 10 #include "media/cast/rtcp/rtcp_sender.h" | 10 #include "media/cast/rtcp/rtcp_sender.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 virtual bool SendPackets( | 57 virtual bool SendPackets( |
| 58 const transport::SendPacketVector& packets) OVERRIDE { | 58 const transport::SendPacketVector& packets) OVERRIDE { |
| 59 return false; | 59 return false; |
| 60 } | 60 } |
| 61 virtual bool ResendPackets( | 61 virtual bool ResendPackets( |
| 62 const transport::SendPacketVector& packets) OVERRIDE { | 62 const transport::SendPacketVector& packets) OVERRIDE { |
| 63 return false; | 63 return false; |
| 64 } | 64 } |
| 65 | 65 |
| 66 virtual void CancelSendingPacket( |
| 67 const transport::PacketKey& packet_key) OVERRIDE { |
| 68 } |
| 69 |
| 66 void SetExpectedRtcpPacket(scoped_ptr<Packet> packet) { | 70 void SetExpectedRtcpPacket(scoped_ptr<Packet> packet) { |
| 67 expected_packet_.swap(*packet); | 71 expected_packet_.swap(*packet); |
| 68 } | 72 } |
| 69 | 73 |
| 70 int packet_count() const { return packet_count_; } | 74 int packet_count() const { return packet_count_; } |
| 71 | 75 |
| 72 private: | 76 private: |
| 73 Packet expected_packet_; | 77 Packet expected_packet_; |
| 74 int packet_count_; | 78 int packet_count_; |
| 75 | 79 |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 testing_clock.Advance( | 546 testing_clock.Advance( |
| 543 base::TimeDelta::FromMilliseconds(kTimeBetweenEventsMs)); | 547 base::TimeDelta::FromMilliseconds(kTimeBetweenEventsMs)); |
| 544 time_base_ms += kTimeBetweenEventsMs; | 548 time_base_ms += kTimeBetweenEventsMs; |
| 545 } | 549 } |
| 546 | 550 |
| 547 EXPECT_EQ(static_cast<int>(packet_count), test_transport_.packet_count()); | 551 EXPECT_EQ(static_cast<int>(packet_count), test_transport_.packet_count()); |
| 548 } | 552 } |
| 549 | 553 |
| 550 } // namespace cast | 554 } // namespace cast |
| 551 } // namespace media | 555 } // namespace media |
| OLD | NEW |