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

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

Issue 1133363002: Getting rid of duplicate includes from media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/external_video_encoder.cc ('k') | media/cast/test/utility/udp_proxy.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 "media/cast/test/fake_media_source.h" 5 #include "media/cast/test/fake_media_source.h"
6 6
7 #include "base/files/memory_mapped_file.h"
8 #include "base/files/scoped_file.h" 7 #include "base/files/scoped_file.h"
9 #include "base/logging.h" 8 #include "base/logging.h"
10 #include "base/rand_util.h" 9 #include "base/rand_util.h"
11 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
12 #include "media/audio/audio_parameters.h"
13 #include "media/base/audio_buffer.h" 11 #include "media/base/audio_buffer.h"
14 #include "media/base/audio_bus.h" 12 #include "media/base/audio_bus.h"
15 #include "media/base/audio_fifo.h" 13 #include "media/base/audio_fifo.h"
16 #include "media/base/audio_timestamp_helper.h" 14 #include "media/base/audio_timestamp_helper.h"
17 #include "media/base/media.h" 15 #include "media/base/media.h"
18 #include "media/base/video_frame.h" 16 #include "media/base/video_frame.h"
19 #include "media/base/video_util.h" 17 #include "media/base/video_util.h"
20 #include "media/cast/cast_sender.h" 18 #include "media/cast/cast_sender.h"
21 #include "media/cast/test/utility/audio_utility.h" 19 #include "media/cast/test/utility/audio_utility.h"
22 #include "media/cast/test/utility/video_utility.h" 20 #include "media/cast/test/utility/video_utility.h"
23 #include "media/ffmpeg/ffmpeg_common.h" 21 #include "media/ffmpeg/ffmpeg_common.h"
24 #include "media/ffmpeg/ffmpeg_deleters.h" 22 #include "media/ffmpeg/ffmpeg_deleters.h"
25 #include "media/filters/audio_renderer_algorithm.h"
26 #include "media/filters/ffmpeg_demuxer.h"
27 #include "media/filters/ffmpeg_glue.h" 23 #include "media/filters/ffmpeg_glue.h"
28 #include "media/filters/in_memory_url_protocol.h" 24 #include "media/filters/in_memory_url_protocol.h"
29 #include "ui/gfx/geometry/size.h" 25 #include "ui/gfx/geometry/size.h"
30 26
31 namespace { 27 namespace {
32 28
33 static const int kSoundFrequency = 440; // Frequency of sinusoid wave. 29 static const int kSoundFrequency = 440; // Frequency of sinusoid wave.
34 static const float kSoundVolume = 0.10f; 30 static const float kSoundVolume = 0.10f;
35 static const int kAudioFrameMs = 10; // Each audio frame is exactly 10ms. 31 static const int kAudioFrameMs = 10; // Each audio frame is exactly 10ms.
36 static const int kAudioPacketsPerSecond = 1000 / kAudioFrameMs; 32 static const int kAudioPacketsPerSecond = 1000 / kAudioFrameMs;
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 AVCodecContext* FakeMediaSource::av_audio_context() { 617 AVCodecContext* FakeMediaSource::av_audio_context() {
622 return av_audio_stream()->codec; 618 return av_audio_stream()->codec;
623 } 619 }
624 620
625 AVCodecContext* FakeMediaSource::av_video_context() { 621 AVCodecContext* FakeMediaSource::av_video_context() {
626 return av_video_stream()->codec; 622 return av_video_stream()->codec;
627 } 623 }
628 624
629 } // namespace cast 625 } // namespace cast
630 } // namespace media 626 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/sender/external_video_encoder.cc ('k') | media/cast/test/utility/udp_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698