| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 testing_clock_, | 148 testing_clock_, |
| 149 dummy_endpoint, | 149 dummy_endpoint, |
| 150 make_scoped_ptr(new base::DictionaryValue), | 150 make_scoped_ptr(new base::DictionaryValue), |
| 151 base::Bind(&UpdateCastTransportStatus), | 151 base::Bind(&UpdateCastTransportStatus), |
| 152 BulkRawEventsCallback(), | 152 BulkRawEventsCallback(), |
| 153 base::TimeDelta(), | 153 base::TimeDelta(), |
| 154 task_runner_, | 154 task_runner_, |
| 155 &transport_)); | 155 &transport_)); |
| 156 } | 156 } |
| 157 | 157 |
| 158 virtual ~VideoSenderTest() {} | 158 ~VideoSenderTest() override {} |
| 159 | 159 |
| 160 virtual void TearDown() override { | 160 void TearDown() override { |
| 161 video_sender_.reset(); | 161 video_sender_.reset(); |
| 162 task_runner_->RunTasks(); | 162 task_runner_->RunTasks(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 static void UpdateCastTransportStatus(CastTransportStatus status) { | 165 static void UpdateCastTransportStatus(CastTransportStatus status) { |
| 166 EXPECT_EQ(TRANSPORT_VIDEO_INITIALIZED, status); | 166 EXPECT_EQ(TRANSPORT_VIDEO_INITIALIZED, status); |
| 167 } | 167 } |
| 168 | 168 |
| 169 // If |external| is true then external video encoder (VEA) is used. | 169 // If |external| is true then external video encoder (VEA) is used. |
| 170 // |expect_init_sucess| is true if initialization is expected to succeed. | 170 // |expect_init_sucess| is true if initialization is expected to succeed. |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 cast_feedback.ack_frame_id = 0; | 531 cast_feedback.ack_frame_id = 0; |
| 532 video_sender_->OnReceivedCastFeedback(cast_feedback); | 532 video_sender_->OnReceivedCastFeedback(cast_feedback); |
| 533 | 533 |
| 534 transport_.SetPause(false); | 534 transport_.SetPause(false); |
| 535 RunTasks(33); | 535 RunTasks(33); |
| 536 EXPECT_EQ(0, transport_.number_of_rtp_packets()); | 536 EXPECT_EQ(0, transport_.number_of_rtp_packets()); |
| 537 } | 537 } |
| 538 | 538 |
| 539 } // namespace cast | 539 } // namespace cast |
| 540 } // namespace media | 540 } // namespace media |
| OLD | NEW |