| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_).Pass(), | 133 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_).Pass(), |
| 134 task_runner_, | 134 task_runner_, |
| 135 task_runner_, | 135 task_runner_, |
| 136 task_runner_); | 136 task_runner_); |
| 137 last_pixel_value_ = kPixelValue; | 137 last_pixel_value_ = kPixelValue; |
| 138 net::IPEndPoint dummy_endpoint; | 138 net::IPEndPoint dummy_endpoint; |
| 139 transport_sender_.reset(new CastTransportSenderImpl( | 139 transport_sender_.reset(new CastTransportSenderImpl( |
| 140 NULL, | 140 NULL, |
| 141 testing_clock_, | 141 testing_clock_, |
| 142 dummy_endpoint, | 142 dummy_endpoint, |
| 143 make_scoped_ptr(new base::DictionaryValue), |
| 143 base::Bind(&UpdateCastTransportStatus), | 144 base::Bind(&UpdateCastTransportStatus), |
| 144 BulkRawEventsCallback(), | 145 BulkRawEventsCallback(), |
| 145 base::TimeDelta(), | 146 base::TimeDelta(), |
| 146 task_runner_, | 147 task_runner_, |
| 147 &transport_)); | 148 &transport_)); |
| 148 } | 149 } |
| 149 | 150 |
| 150 virtual ~VideoSenderTest() {} | 151 virtual ~VideoSenderTest() {} |
| 151 | 152 |
| 152 virtual void TearDown() OVERRIDE { | 153 virtual void TearDown() OVERRIDE { |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 cast_feedback.ack_frame_id = 0; | 502 cast_feedback.ack_frame_id = 0; |
| 502 video_sender_->OnReceivedCastFeedback(cast_feedback); | 503 video_sender_->OnReceivedCastFeedback(cast_feedback); |
| 503 | 504 |
| 504 transport_.SetPause(false); | 505 transport_.SetPause(false); |
| 505 RunTasks(33); | 506 RunTasks(33); |
| 506 EXPECT_EQ(0, transport_.number_of_rtp_packets()); | 507 EXPECT_EQ(0, transport_.number_of_rtp_packets()); |
| 507 } | 508 } |
| 508 | 509 |
| 509 } // namespace cast | 510 } // namespace cast |
| 510 } // namespace media | 511 } // namespace media |
| OLD | NEW |