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

Side by Side Diff: media/cast/sender/video_sender_unittest.cc

Issue 2048033003: Refactoring: CastTransport InitializeAudio/InitializeVideo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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 "media/cast/sender/video_sender.h" 5 #include "media/cast/sender/video_sender.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 base::Bind(&IgnorePlayoutDelayChanges)) {} 127 base::Bind(&IgnorePlayoutDelayChanges)) {}
128 using VideoSender::OnReceivedCastFeedback; 128 using VideoSender::OnReceivedCastFeedback;
129 using VideoSender::OnReceivedPli; 129 using VideoSender::OnReceivedPli;
130 }; 130 };
131 131
132 class TransportClient : public CastTransport::Client { 132 class TransportClient : public CastTransport::Client {
133 public: 133 public:
134 TransportClient() {} 134 TransportClient() {}
135 135
136 void OnStatusChanged(CastTransportStatus status) final { 136 void OnStatusChanged(CastTransportStatus status) final {
137 EXPECT_EQ(TRANSPORT_VIDEO_INITIALIZED, status); 137 EXPECT_EQ(TRANSPORT_STREAM_INITIALIZED, status);
138 }; 138 };
139 void OnLoggingEventsReceived( 139 void OnLoggingEventsReceived(
140 std::unique_ptr<std::vector<FrameEvent>> frame_events, 140 std::unique_ptr<std::vector<FrameEvent>> frame_events,
141 std::unique_ptr<std::vector<PacketEvent>> packet_events) final{}; 141 std::unique_ptr<std::vector<PacketEvent>> packet_events) final{};
142 void ProcessRtpPacket(std::unique_ptr<Packet> packet) final{}; 142 void ProcessRtpPacket(std::unique_ptr<Packet> packet) final{};
143 143
144 DISALLOW_COPY_AND_ASSIGN(TransportClient); 144 DISALLOW_COPY_AND_ASSIGN(TransportClient);
145 }; 145 };
146 146
147 } // namespace 147 } // namespace
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 video_frame, 635 video_frame,
636 testing_clock_->NowTicks() + base::TimeDelta::FromMilliseconds(1000)); 636 testing_clock_->NowTicks() + base::TimeDelta::FromMilliseconds(1000));
637 RunTasks(33); 637 RunTasks(33);
638 transport_->SetPause(false); 638 transport_->SetPause(false);
639 RunTasks(33); 639 RunTasks(33);
640 EXPECT_EQ(2, transport_->number_of_rtp_packets()); 640 EXPECT_EQ(2, transport_->number_of_rtp_packets());
641 } 641 }
642 642
643 } // namespace cast 643 } // namespace cast
644 } // namespace media 644 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698