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

Unified Diff: media/audio/cras/cras_input_unittest.cc

Issue 1211273005: Use safer IPC serializations in media_param_traits.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up unit tests Created 5 years, 6 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/video_capture_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/cras/cras_input_unittest.cc
diff --git a/media/audio/cras/cras_input_unittest.cc b/media/audio/cras/cras_input_unittest.cc
index 4352b58a773805d8480e98761cac9760954f0d22..6c5a40cd4c6e2a7bb0021eae7174a44374da028f 100644
--- a/media/audio/cras/cras_input_unittest.cc
+++ b/media/audio/cras/cras_input_unittest.cc
@@ -151,19 +151,6 @@ TEST_F(CrasInputStreamTest, BadBitsPerSample) {
test_stream->Close();
}
-TEST_F(CrasInputStreamTest, BadFormat) {
- AudioParameters bad_format_params(AudioParameters::AUDIO_LAST_FORMAT,
- kTestChannelLayout,
- kTestSampleRate,
- kTestBitsPerSample,
- kTestFramesPerPacket);
- CrasInputStream* test_stream = new CrasInputStream(
- bad_format_params, mock_manager_.get(),
- AudioManagerBase::kDefaultDeviceId);
- EXPECT_FALSE(test_stream->Open());
- test_stream->Close();
-}
-
TEST_F(CrasInputStreamTest, BadSampleRate) {
AudioParameters bad_rate_params(kTestFormat,
kTestChannelLayout,
« no previous file with comments | « media/audio/audio_parameters.cc ('k') | media/base/video_capture_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698