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 // MSVC++ requires this to be set before any other includes to get M_PI. | 5 // MSVC++ requires this to be set before any other includes to get M_PI. |
6 #define _USE_MATH_DEFINES | 6 #define _USE_MATH_DEFINES |
7 | 7 |
8 #include "media/base/audio_renderer_mixer.h" | 8 #include "media/base/audio_renderer_mixer.h" |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 // Both downsampling and upsampling, multiple input sample rates | 544 // Both downsampling and upsampling, multiple input sample rates |
545 std::tr1::make_tuple(static_cast<const int* const>(kTestInput3Rates), | 545 std::tr1::make_tuple(static_cast<const int* const>(kTestInput3Rates), |
546 arraysize(kTestInput3Rates), | 546 arraysize(kTestInput3Rates), |
547 kTestInput3Rates[1], | 547 kTestInput3Rates[1], |
548 0.01))); | 548 0.01))); |
549 | 549 |
550 // Test cases for behavior which is independent of parameters. Values() doesn't | 550 // Test cases for behavior which is independent of parameters. Values() doesn't |
551 // support single item lists and we don't want these test cases to run for every | 551 // support single item lists and we don't want these test cases to run for every |
552 // parameter set. | 552 // parameter set. |
553 INSTANTIATE_TEST_CASE_P( | 553 INSTANTIATE_TEST_CASE_P( |
554 AudioRendererMixerBehavioralTest, | 554 /* no prefix */, |
555 AudioRendererMixerBehavioralTest, | 555 AudioRendererMixerBehavioralTest, |
556 testing::ValuesIn(std::vector<AudioRendererMixerTestData>( | 556 testing::ValuesIn(std::vector<AudioRendererMixerTestData>( |
557 1, | 557 1, |
558 std::tr1::make_tuple(&kTestInputLower, | 558 std::tr1::make_tuple(&kTestInputLower, |
559 1, | 559 1, |
560 kTestInputLower, | 560 kTestInputLower, |
561 0.00000048)))); | 561 0.00000048)))); |
562 } // namespace media | 562 } // namespace media |
OLD | NEW |