OLD | NEW |
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/strings/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 { | 10 namespace media { |
11 | 11 |
12 TEST(AudioParameters, Constructor_Default) { | 12 TEST(AudioParameters, Constructor_Default) { |
13 AudioParameters::Format expected_format = AudioParameters::AUDIO_PCM_LINEAR; | 13 AudioParameters::Format expected_format = AudioParameters::AUDIO_PCM_LINEAR; |
14 int expected_bits = 0; | 14 int expected_bits = 0; |
15 int expected_channels = 0; | 15 int expected_channels = 0; |
16 ChannelLayout expected_channel_layout = CHANNEL_LAYOUT_NONE; | 16 ChannelLayout expected_channel_layout = CHANNEL_LAYOUT_NONE; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 SCOPED_TRACE("i=" + base::IntToString(i) + " j=" + base::IntToString(j)); | 159 SCOPED_TRACE("i=" + base::IntToString(i) + " j=" + base::IntToString(j)); |
160 EXPECT_EQ(i < j, values[i] < values[j]); | 160 EXPECT_EQ(i < j, values[i] < values[j]); |
161 } | 161 } |
162 | 162 |
163 // Verify that a value is never less than itself. | 163 // Verify that a value is never less than itself. |
164 EXPECT_FALSE(values[i] < values[i]); | 164 EXPECT_FALSE(values[i] < values[i]); |
165 } | 165 } |
166 } | 166 } |
167 | 167 |
168 } // namespace media | 168 } // namespace media |
OLD | NEW |