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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
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"
6 #include "base/strings/string_number_conversions.h" 5 #include "base/strings/string_number_conversions.h"
7 #include "media/audio/audio_parameters.h" 6 #include "media/audio/audio_parameters.h"
8 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
9 8
10 namespace media { 9 namespace media {
11 10
12 TEST(AudioParameters, Constructor_Default) { 11 TEST(AudioParameters, Constructor_Default) {
13 AudioParameters::Format expected_format = AudioParameters::AUDIO_PCM_LINEAR; 12 AudioParameters::Format expected_format = AudioParameters::AUDIO_PCM_LINEAR;
14 int expected_bits = 0; 13 int expected_bits = 0;
15 int expected_channels = 0; 14 int expected_channels = 0;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 214
216 AudioParameters params(AudioParameters::AUDIO_PCM_LOW_LATENCY, 215 AudioParameters params(AudioParameters::AUDIO_PCM_LOW_LATENCY,
217 expected_layout, 44100, 16, 880); 216 expected_layout, 44100, 16, 880);
218 params.set_channels_for_discrete(expected_channels); 217 params.set_channels_for_discrete(expected_channels);
219 EXPECT_EQ(expected_channels, params.channels()); 218 EXPECT_EQ(expected_channels, params.channels());
220 EXPECT_EQ(expected_layout, params.channel_layout()); 219 EXPECT_EQ(expected_layout, params.channel_layout());
221 EXPECT_TRUE(params.IsValid()); 220 EXPECT_TRUE(params.IsValid());
222 } 221 }
223 222
224 } // namespace media 223 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698