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

Side by Side Diff: media/base/audio_hardware_config_unittest.cc

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/base/audio_hardware_config.h ('k') | media/base/audio_parameters.h » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "media/base/audio_hardware_config.h" 6 #include "media/base/audio_hardware_config.h"
7 #include "media/audio/audio_parameters.h" 7 #include "media/base/audio_parameters.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 static const int kOutputBufferSize = 2048; 12 static const int kOutputBufferSize = 2048;
13 static const int kOutputSampleRate = 48000; 13 static const int kOutputSampleRate = 48000;
14 static const ChannelLayout kOutputChannelLayout = CHANNEL_LAYOUT_STEREO; 14 static const ChannelLayout kOutputChannelLayout = CHANNEL_LAYOUT_STEREO;
15 static const int kInputSampleRate = 44100; 15 static const int kInputSampleRate = 44100;
16 static const ChannelLayout kInputChannelLayout = CHANNEL_LAYOUT_STEREO; 16 static const ChannelLayout kInputChannelLayout = CHANNEL_LAYOUT_STEREO;
17 17
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 kOutputChannelLayout, 120 kOutputChannelLayout,
121 i, 121 i,
122 16, 122 16,
123 32)); 123 32));
124 EXPECT_EQ(2 * (i / 100), fake_config.GetHighLatencyBufferSize()); 124 EXPECT_EQ(2 * (i / 100), fake_config.GetHighLatencyBufferSize());
125 } 125 }
126 #endif // defined(OS_WIN) 126 #endif // defined(OS_WIN)
127 } 127 }
128 128
129 } // namespace content 129 } // namespace content
OLDNEW
« no previous file with comments | « media/base/audio_hardware_config.h ('k') | media/base/audio_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698