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

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

Issue 551883004: Cast: Let the extension control if DSCP is on or off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 years, 3 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
« no previous file with comments | « media/cast/sender/audio_sender_unittest.cc ('k') | media/cast/test/cast_benchmarks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
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
OLDNEW
« no previous file with comments | « media/cast/sender/audio_sender_unittest.cc ('k') | media/cast/test/cast_benchmarks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698