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

Side by Side Diff: media/cast/test/simulator.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/test/sender.cc ('k') | no next file » | 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 // Simulate end to end streaming. 5 // Simulate end to end streaming.
6 // 6 //
7 // Input: 7 // Input:
8 // --source= 8 // --source=
9 // WebM used as the source of video and audio frames. 9 // WebM used as the source of video and audio frames.
10 // --output= 10 // --output=
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 audio_receiver_config, 252 audio_receiver_config,
253 video_receiver_config, 253 video_receiver_config,
254 &receiver_to_sender)); 254 &receiver_to_sender));
255 255
256 // Cast sender and transport sender. 256 // Cast sender and transport sender.
257 scoped_ptr<CastTransportSender> transport_sender( 257 scoped_ptr<CastTransportSender> transport_sender(
258 new CastTransportSenderImpl( 258 new CastTransportSenderImpl(
259 NULL, 259 NULL,
260 &testing_clock, 260 &testing_clock,
261 net::IPEndPoint(), 261 net::IPEndPoint(),
262 make_scoped_ptr(new base::DictionaryValue),
262 base::Bind(&UpdateCastTransportStatus), 263 base::Bind(&UpdateCastTransportStatus),
263 base::Bind(&LogTransportEvents, sender_env), 264 base::Bind(&LogTransportEvents, sender_env),
264 base::TimeDelta::FromSeconds(1), 265 base::TimeDelta::FromSeconds(1),
265 task_runner, 266 task_runner,
266 &sender_to_receiver)); 267 &sender_to_receiver));
267 scoped_ptr<CastSender> cast_sender( 268 scoped_ptr<CastSender> cast_sender(
268 CastSender::Create(sender_env, transport_sender.get())); 269 CastSender::Create(sender_env, transport_sender.get()));
269 270
270 // Build packet pipe. 271 // Build packet pipe.
271 if (model.type() != media::cast::proto::INTERRUPTED_POISSON_PROCESS) { 272 if (model.type() != media::cast::proto::INTERRUPTED_POISSON_PROCESS) {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 values.SetBoolean("sim", true); 512 values.SetBoolean("sim", true);
512 values.SetString("sim-id", sim_id); 513 values.SetString("sim-id", sim_id);
513 514
514 std::string extra_data; 515 std::string extra_data;
515 base::JSONWriter::Write(&values, &extra_data); 516 base::JSONWriter::Write(&values, &extra_data);
516 517
517 // Run. 518 // Run.
518 media::cast::RunSimulation(source_path, output_path, extra_data, model); 519 media::cast::RunSimulation(source_path, output_path, extra_data, model);
519 return 0; 520 return 0;
520 } 521 }
OLDNEW
« no previous file with comments | « media/cast/test/sender.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698