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

Side by Side Diff: media/filters/audio_decoder_unittest.cc

Issue 1577433004: Flip proprietary codecs to false for Android chromium builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo comment change. Created 4 years, 9 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
« no previous file with comments | « media/base/mime_util_unittest.cc ('k') | media/media.gyp » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 }; 496 };
497 497
498 INSTANTIATE_TEST_CASE_P(OpusAudioDecoderTest, 498 INSTANTIATE_TEST_CASE_P(OpusAudioDecoderTest,
499 AudioDecoderTest, 499 AudioDecoderTest,
500 testing::ValuesIn(kOpusTests)); 500 testing::ValuesIn(kOpusTests));
501 INSTANTIATE_TEST_CASE_P(OpusAudioDecoderBehavioralTest, 501 INSTANTIATE_TEST_CASE_P(OpusAudioDecoderBehavioralTest,
502 OpusAudioDecoderBehavioralTest, 502 OpusAudioDecoderBehavioralTest,
503 testing::ValuesIn(kOpusBehavioralTest)); 503 testing::ValuesIn(kOpusBehavioralTest));
504 504
505 #if defined(OS_ANDROID) 505 #if defined(OS_ANDROID)
506
507 const DecoderTestData kMediaCodecTests[] = { 506 const DecoderTestData kMediaCodecTests[] = {
508 {MEDIA_CODEC, kCodecOpus, "bear-opus.ogg", kBearOpusExpectations, 24, 48000, 507 {MEDIA_CODEC, kCodecOpus, "bear-opus.ogg", kBearOpusExpectations, 24, 48000,
509 CHANNEL_LAYOUT_STEREO}, 508 CHANNEL_LAYOUT_STEREO},
510 }; 509 };
511 510
512 INSTANTIATE_TEST_CASE_P(MediaCodecAudioDecoderTest, 511 INSTANTIATE_TEST_CASE_P(MediaCodecAudioDecoderTest,
513 AudioDecoderTest, 512 AudioDecoderTest,
514 testing::ValuesIn(kMediaCodecTests)); 513 testing::ValuesIn(kMediaCodecTests));
515 514 #endif // defined(OS_ANDROID)
516 #else // !defined(OS_ANDROID)
517
518 // Disable all FFmpeg decoder tests on Android. http://crbug.com/570762.
519 515
520 #if defined(USE_PROPRIETARY_CODECS) 516 #if defined(USE_PROPRIETARY_CODECS)
521 const DecodedBufferExpectations kSfxMp3Expectations[] = { 517 const DecodedBufferExpectations kSfxMp3Expectations[] = {
522 {0, 1065, "2.81,3.99,4.53,4.10,3.08,2.46,"}, 518 {0, 1065, "2.81,3.99,4.53,4.10,3.08,2.46,"},
523 {1065, 26122, "-3.81,-4.14,-3.90,-3.36,-3.03,-3.23,"}, 519 {1065, 26122, "-3.81,-4.14,-3.90,-3.36,-3.03,-3.23,"},
524 {27188, 26122, "4.24,3.95,4.22,4.78,5.13,4.93,"}, 520 {27188, 26122, "4.24,3.95,4.22,4.78,5.13,4.93,"},
525 }; 521 };
526 522
527 const DecodedBufferExpectations kSfxAdtsExpectations[] = { 523 const DecodedBufferExpectations kSfxAdtsExpectations[] = {
528 {0, 23219, "-1.90,-1.53,-0.15,1.28,1.23,-0.33,"}, 524 {0, 23219, "-1.90,-1.53,-0.15,1.28,1.23,-0.33,"},
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 {FFMPEG, kUnknownAudioCodec, "", NULL, 0, 0, CHANNEL_LAYOUT_NONE}, 587 {FFMPEG, kUnknownAudioCodec, "", NULL, 0, 0, CHANNEL_LAYOUT_NONE},
592 }; 588 };
593 589
594 INSTANTIATE_TEST_CASE_P(FFmpegAudioDecoderTest, 590 INSTANTIATE_TEST_CASE_P(FFmpegAudioDecoderTest,
595 AudioDecoderTest, 591 AudioDecoderTest,
596 testing::ValuesIn(kFFmpegTests)); 592 testing::ValuesIn(kFFmpegTests));
597 INSTANTIATE_TEST_CASE_P(FFmpegAudioDecoderBehavioralTest, 593 INSTANTIATE_TEST_CASE_P(FFmpegAudioDecoderBehavioralTest,
598 FFmpegAudioDecoderBehavioralTest, 594 FFmpegAudioDecoderBehavioralTest,
599 testing::ValuesIn(kFFmpegBehavioralTest)); 595 testing::ValuesIn(kFFmpegBehavioralTest));
600 596
601 #endif // !defined(OS_ANDROID)
602
603 } // namespace media 597 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mime_util_unittest.cc ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698