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

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

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DEPS Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Test application that simulates a cast sender - Data can be either generated 5 // Test application that simulates a cast sender - Data can be either generated
6 // or read from a file. 6 // or read from a file.
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 17 matching lines...) Expand all
28 #include "media/cast/logging/log_serializer.h" 28 #include "media/cast/logging/log_serializer.h"
29 #include "media/cast/logging/logging_defines.h" 29 #include "media/cast/logging/logging_defines.h"
30 #include "media/cast/logging/proto/raw_events.pb.h" 30 #include "media/cast/logging/proto/raw_events.pb.h"
31 #include "media/cast/logging/receiver_time_offset_estimator_impl.h" 31 #include "media/cast/logging/receiver_time_offset_estimator_impl.h"
32 #include "media/cast/logging/stats_event_subscriber.h" 32 #include "media/cast/logging/stats_event_subscriber.h"
33 #include "media/cast/test/fake_media_source.h" 33 #include "media/cast/test/fake_media_source.h"
34 #include "media/cast/test/utility/default_config.h" 34 #include "media/cast/test/utility/default_config.h"
35 #include "media/cast/test/utility/input_builder.h" 35 #include "media/cast/test/utility/input_builder.h"
36 #include "media/cast/transport/cast_transport_defines.h" 36 #include "media/cast/transport/cast_transport_defines.h"
37 #include "media/cast/transport/cast_transport_sender.h" 37 #include "media/cast/transport/cast_transport_sender.h"
38 #include "media/cast/transport/transport/udp_transport.h" 38 #include "media/cast/transport/udp_transport.h"
39 39
40 namespace { 40 namespace {
41 static const int kAudioChannels = 2; 41 static const int kAudioChannels = 2;
42 static const int kAudioSamplingFrequency = 48000; 42 static const int kAudioSamplingFrequency = 48000;
43 43
44 // The max allowed size of serialized log. 44 // The max allowed size of serialized log.
45 const int kMaxSerializedLogBytes = 10 * 1000 * 1000; 45 const int kMaxSerializedLogBytes = 10 * 1000 * 1000;
46 46
47 // Flags for this program: 47 // Flags for this program:
48 // 48 //
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 base::Passed(&audio_stats_subscriber), 393 base::Passed(&audio_stats_subscriber),
394 base::Passed(&offset_estimator)), 394 base::Passed(&offset_estimator)),
395 base::TimeDelta::FromSeconds(logging_duration_seconds)); 395 base::TimeDelta::FromSeconds(logging_duration_seconds));
396 396
397 fake_media_source->Start(cast_sender->audio_frame_input(), 397 fake_media_source->Start(cast_sender->audio_frame_input(),
398 cast_sender->video_frame_input()); 398 cast_sender->video_frame_input());
399 399
400 io_message_loop.Run(); 400 io_message_loop.Run();
401 return 0; 401 return 0;
402 } 402 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698