| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |