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

Side by Side Diff: media/audio/audio_parameters_unittest.cc

Issue 9965076: Revert 130180 - Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/audio_parameters.cc ('k') | media/audio/fake_audio_input_stream.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/string_number_conversions.h" 6 #include "base/string_number_conversions.h"
7 #include "media/audio/audio_parameters.h" 7 #include "media/audio/audio_parameters.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace media {
11
12 TEST(AudioParameters, Constructor_Default) { 10 TEST(AudioParameters, Constructor_Default) {
13 AudioParameters::Format expected_format = AudioParameters::AUDIO_PCM_LINEAR; 11 AudioParameters::Format expected_format = AudioParameters::AUDIO_PCM_LINEAR;
14 int expected_bits = 0; 12 int expected_bits = 0;
15 int expected_channels = 0; 13 int expected_channels = 0;
16 ChannelLayout expected_channel_layout = CHANNEL_LAYOUT_NONE; 14 ChannelLayout expected_channel_layout = CHANNEL_LAYOUT_NONE;
17 int expected_rate = 0; 15 int expected_rate = 0;
18 int expected_samples = 0; 16 int expected_samples = 0;
19 17
20 AudioParameters params; 18 AudioParameters params;
21 19
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 for (size_t i = 0; i < arraysize(values); ++i) { 156 for (size_t i = 0; i < arraysize(values); ++i) {
159 for (size_t j = 0; j < arraysize(values); ++j) { 157 for (size_t j = 0; j < arraysize(values); ++j) {
160 SCOPED_TRACE("i=" + base::IntToString(i) + " j=" + base::IntToString(j)); 158 SCOPED_TRACE("i=" + base::IntToString(i) + " j=" + base::IntToString(j));
161 EXPECT_EQ(i < j, target(values[i], values[j])); 159 EXPECT_EQ(i < j, target(values[i], values[j]));
162 } 160 }
163 161
164 // Verify that a value is never less than itself. 162 // Verify that a value is never less than itself.
165 EXPECT_FALSE(target(values[i], values[i])); 163 EXPECT_FALSE(target(values[i], values[i]));
166 } 164 }
167 } 165 }
168
169 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_parameters.cc ('k') | media/audio/fake_audio_input_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698