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

Unified Diff: media/audio/audio_parameters_unittest.cc

Issue 7796033: Replace AudioDecoderConfig with simple accessors on AudioDecoder. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_parameters.cc ('k') | media/base/audio_decoder_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_parameters_unittest.cc
diff --git a/media/audio/audio_parameters_unittest.cc b/media/audio/audio_parameters_unittest.cc
index afcf6ff5d8a4c54ad232a9f6b93b1c70176ff853..da3e746fc2808b2ff9f47715e01007f0bd7de48d 100644
--- a/media/audio/audio_parameters_unittest.cc
+++ b/media/audio/audio_parameters_unittest.cc
@@ -7,8 +7,6 @@
#include "media/audio/audio_parameters.h"
#include "testing/gtest/include/gtest/gtest.h"
-using media::AudioDecoderConfig;
-
TEST(AudioParameters, Constructor_Default) {
AudioParameters::Format expected_format = AudioParameters::AUDIO_PCM_LINEAR;
int expected_bits = 0;
@@ -27,26 +25,6 @@ TEST(AudioParameters, Constructor_Default) {
EXPECT_EQ(expected_samples, params.samples_per_packet);
}
-TEST(AudioParameters, Constructor_AudioDecoderConfig) {
- AudioParameters::Format expected_format = AudioParameters::AUDIO_PCM_LINEAR;
- int expected_bits = 8;
- int expected_channels = 2;
- ChannelLayout expected_channel_layout = CHANNEL_LAYOUT_STEREO;
- int expected_rate = 44000;
- int expected_samples = 0;
-
- AudioDecoderConfig config(expected_bits, expected_channel_layout,
- expected_rate);
- AudioParameters params(config);
-
- EXPECT_EQ(expected_format, params.format);
- EXPECT_EQ(expected_bits, params.bits_per_sample);
- EXPECT_EQ(expected_channels, params.channels);
- EXPECT_EQ(expected_channel_layout, params.channel_layout);
- EXPECT_EQ(expected_rate, params.sample_rate);
- EXPECT_EQ(expected_samples, params.samples_per_packet);
-}
-
TEST(AudioParameters, Constructor_ParameterValues) {
AudioParameters::Format expected_format =
AudioParameters::AUDIO_PCM_LOW_LATENCY;
« no previous file with comments | « media/audio/audio_parameters.cc ('k') | media/base/audio_decoder_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698