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 "media/cast/sender/audio_sender.h" | 5 #include "media/cast/sender/audio_sender.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 24 matching lines...) Expand all Loading... |
35 DVLOG(1) << "OperationalStatus transitioning from " << *out_status << " to " | 35 DVLOG(1) << "OperationalStatus transitioning from " << *out_status << " to " |
36 << in_status; | 36 << in_status; |
37 *out_status = in_status; | 37 *out_status = in_status; |
38 } | 38 } |
39 | 39 |
40 class TransportClient : public CastTransport::Client { | 40 class TransportClient : public CastTransport::Client { |
41 public: | 41 public: |
42 TransportClient() {} | 42 TransportClient() {} |
43 | 43 |
44 void OnStatusChanged(CastTransportStatus status) final { | 44 void OnStatusChanged(CastTransportStatus status) final { |
45 EXPECT_EQ(TRANSPORT_AUDIO_INITIALIZED, status); | 45 EXPECT_EQ(TRANSPORT_STREAM_INITIALIZED, status); |
46 }; | 46 }; |
47 void OnLoggingEventsReceived( | 47 void OnLoggingEventsReceived( |
48 std::unique_ptr<std::vector<FrameEvent>> frame_events, | 48 std::unique_ptr<std::vector<FrameEvent>> frame_events, |
49 std::unique_ptr<std::vector<PacketEvent>> packet_events) final{}; | 49 std::unique_ptr<std::vector<PacketEvent>> packet_events) final{}; |
50 void ProcessRtpPacket(std::unique_ptr<Packet> packet) final{}; | 50 void ProcessRtpPacket(std::unique_ptr<Packet> packet) final{}; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(TransportClient); | 52 DISALLOW_COPY_AND_ASSIGN(TransportClient); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace | 55 } // namespace |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 base::TimeDelta max_rtcp_timeout = | 161 base::TimeDelta max_rtcp_timeout = |
162 base::TimeDelta::FromMilliseconds(1 + kRtcpReportIntervalMs * 3 / 2); | 162 base::TimeDelta::FromMilliseconds(1 + kRtcpReportIntervalMs * 3 / 2); |
163 testing_clock_->Advance(max_rtcp_timeout); | 163 testing_clock_->Advance(max_rtcp_timeout); |
164 task_runner_->RunTasks(); | 164 task_runner_->RunTasks(); |
165 EXPECT_LE(1, transport_->number_of_rtp_packets()); | 165 EXPECT_LE(1, transport_->number_of_rtp_packets()); |
166 EXPECT_LE(1, transport_->number_of_rtcp_packets()); | 166 EXPECT_LE(1, transport_->number_of_rtcp_packets()); |
167 } | 167 } |
168 | 168 |
169 } // namespace cast | 169 } // namespace cast |
170 } // namespace media | 170 } // namespace media |
OLD | NEW |