diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-07-12 03:01:29 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-07-12 03:01:29 +0000 |
commit | f7f7a14d975783ff0682ee06774e9d9d879c89dd (patch) | |
tree | 6a2d9ebeccd88b80d7982de9def4a0833642241b | |
parent | 4bf309ee56108e775a2d8f9676ee5b91c025b199 (diff) | |
parent | 755198bb663a640280a47a27d44b5a9f8424bdb1 (diff) | |
download | webrtc-f7f7a14d975783ff0682ee06774e9d9d879c89dd.tar.gz |
Snap for 4887897 from 755198bb663a640280a47a27d44b5a9f8424bdb1 to qt-release
Change-Id: I39379d81aafff32ccc094742473fad42e1441860
-rw-r--r-- | METADATA | 18 | ||||
-rw-r--r-- | webrtc/modules/audio_processing/test/audio_processing_unittest.cc | 218 |
2 files changed, 127 insertions, 109 deletions
diff --git a/METADATA b/METADATA new file mode 100644 index 0000000000..0445201999 --- /dev/null +++ b/METADATA @@ -0,0 +1,18 @@ +name: "webrtc" +description: "WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs." +third_party { + url { + type: HOMEPAGE + value: "https://webrtc.org/" + } + url { + type: GIT + value: "https://webrtc.googlesource.com/src/" + } + version: "04cb763955aadf29324ec124b55aa399a7645d51" + last_upgrade_date { + year: 2016 + month: 1 + day: 14 + } +} diff --git a/webrtc/modules/audio_processing/test/audio_processing_unittest.cc b/webrtc/modules/audio_processing/test/audio_processing_unittest.cc index 324cb7bec6..f0855b4541 100644 --- a/webrtc/modules/audio_processing/test/audio_processing_unittest.cc +++ b/webrtc/modules/audio_processing/test/audio_processing_unittest.cc @@ -2342,18 +2342,18 @@ void UpdateBestSNR(const float* ref, // Due to the resampling distortion, we don't expect identical results, but // enforce SNR thresholds which vary depending on the format. 0 is a special // case SNR which corresponds to inf, or zero error. -typedef std::tr1::tuple<int, int, int, int, double, double> +typedef ::testing::tuple<int, int, int, int, double, double> AudioProcessingTestData; class AudioProcessingTest : public testing::TestWithParam<AudioProcessingTestData> { public: AudioProcessingTest() - : input_rate_(std::tr1::get<0>(GetParam())), - output_rate_(std::tr1::get<1>(GetParam())), - reverse_input_rate_(std::tr1::get<2>(GetParam())), - reverse_output_rate_(std::tr1::get<3>(GetParam())), - expected_snr_(std::tr1::get<4>(GetParam())), - expected_reverse_snr_(std::tr1::get<5>(GetParam())) {} + : input_rate_(::testing::get<0>(GetParam())), + output_rate_(::testing::get<1>(GetParam())), + reverse_input_rate_(::testing::get<2>(GetParam())), + reverse_output_rate_(::testing::get<3>(GetParam())), + expected_snr_(::testing::get<4>(GetParam())), + expected_reverse_snr_(::testing::get<5>(GetParam())) {} virtual ~AudioProcessingTest() {} @@ -2640,113 +2640,113 @@ TEST_P(AudioProcessingTest, Formats) { INSTANTIATE_TEST_CASE_P( CommonFormats, AudioProcessingTest, - testing::Values(std::tr1::make_tuple(48000, 48000, 48000, 48000, 0, 0), - std::tr1::make_tuple(48000, 48000, 32000, 48000, 40, 30), - std::tr1::make_tuple(48000, 48000, 16000, 48000, 40, 20), - std::tr1::make_tuple(48000, 44100, 48000, 44100, 20, 20), - std::tr1::make_tuple(48000, 44100, 32000, 44100, 20, 15), - std::tr1::make_tuple(48000, 44100, 16000, 44100, 20, 15), - std::tr1::make_tuple(48000, 32000, 48000, 32000, 30, 35), - std::tr1::make_tuple(48000, 32000, 32000, 32000, 30, 0), - std::tr1::make_tuple(48000, 32000, 16000, 32000, 30, 20), - std::tr1::make_tuple(48000, 16000, 48000, 16000, 25, 20), - std::tr1::make_tuple(48000, 16000, 32000, 16000, 25, 20), - std::tr1::make_tuple(48000, 16000, 16000, 16000, 25, 0), - - std::tr1::make_tuple(44100, 48000, 48000, 48000, 30, 0), - std::tr1::make_tuple(44100, 48000, 32000, 48000, 30, 30), - std::tr1::make_tuple(44100, 48000, 16000, 48000, 30, 20), - std::tr1::make_tuple(44100, 44100, 48000, 44100, 20, 20), - std::tr1::make_tuple(44100, 44100, 32000, 44100, 20, 15), - std::tr1::make_tuple(44100, 44100, 16000, 44100, 20, 15), - std::tr1::make_tuple(44100, 32000, 48000, 32000, 30, 35), - std::tr1::make_tuple(44100, 32000, 32000, 32000, 30, 0), - std::tr1::make_tuple(44100, 32000, 16000, 32000, 30, 20), - std::tr1::make_tuple(44100, 16000, 48000, 16000, 25, 20), - std::tr1::make_tuple(44100, 16000, 32000, 16000, 25, 20), - std::tr1::make_tuple(44100, 16000, 16000, 16000, 25, 0), - - std::tr1::make_tuple(32000, 48000, 48000, 48000, 30, 0), - std::tr1::make_tuple(32000, 48000, 32000, 48000, 35, 30), - std::tr1::make_tuple(32000, 48000, 16000, 48000, 30, 20), - std::tr1::make_tuple(32000, 44100, 48000, 44100, 20, 20), - std::tr1::make_tuple(32000, 44100, 32000, 44100, 20, 15), - std::tr1::make_tuple(32000, 44100, 16000, 44100, 20, 15), - std::tr1::make_tuple(32000, 32000, 48000, 32000, 40, 35), - std::tr1::make_tuple(32000, 32000, 32000, 32000, 0, 0), - std::tr1::make_tuple(32000, 32000, 16000, 32000, 40, 20), - std::tr1::make_tuple(32000, 16000, 48000, 16000, 25, 20), - std::tr1::make_tuple(32000, 16000, 32000, 16000, 25, 20), - std::tr1::make_tuple(32000, 16000, 16000, 16000, 25, 0), - - std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0), - std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30), - std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20), - std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20), - std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15), - std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15), - std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35), - std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0), - std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20), - std::tr1::make_tuple(16000, 16000, 48000, 16000, 40, 20), - std::tr1::make_tuple(16000, 16000, 32000, 16000, 50, 20), - std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0))); + testing::Values(::testing::make_tuple(48000, 48000, 48000, 48000, 0, 0), + ::testing::make_tuple(48000, 48000, 32000, 48000, 40, 30), + ::testing::make_tuple(48000, 48000, 16000, 48000, 40, 20), + ::testing::make_tuple(48000, 44100, 48000, 44100, 20, 20), + ::testing::make_tuple(48000, 44100, 32000, 44100, 20, 15), + ::testing::make_tuple(48000, 44100, 16000, 44100, 20, 15), + ::testing::make_tuple(48000, 32000, 48000, 32000, 30, 35), + ::testing::make_tuple(48000, 32000, 32000, 32000, 30, 0), + ::testing::make_tuple(48000, 32000, 16000, 32000, 30, 20), + ::testing::make_tuple(48000, 16000, 48000, 16000, 25, 20), + ::testing::make_tuple(48000, 16000, 32000, 16000, 25, 20), + ::testing::make_tuple(48000, 16000, 16000, 16000, 25, 0), + + ::testing::make_tuple(44100, 48000, 48000, 48000, 30, 0), + ::testing::make_tuple(44100, 48000, 32000, 48000, 30, 30), + ::testing::make_tuple(44100, 48000, 16000, 48000, 30, 20), + ::testing::make_tuple(44100, 44100, 48000, 44100, 20, 20), + ::testing::make_tuple(44100, 44100, 32000, 44100, 20, 15), + ::testing::make_tuple(44100, 44100, 16000, 44100, 20, 15), + ::testing::make_tuple(44100, 32000, 48000, 32000, 30, 35), + ::testing::make_tuple(44100, 32000, 32000, 32000, 30, 0), + ::testing::make_tuple(44100, 32000, 16000, 32000, 30, 20), + ::testing::make_tuple(44100, 16000, 48000, 16000, 25, 20), + ::testing::make_tuple(44100, 16000, 32000, 16000, 25, 20), + ::testing::make_tuple(44100, 16000, 16000, 16000, 25, 0), + + ::testing::make_tuple(32000, 48000, 48000, 48000, 30, 0), + ::testing::make_tuple(32000, 48000, 32000, 48000, 35, 30), + ::testing::make_tuple(32000, 48000, 16000, 48000, 30, 20), + ::testing::make_tuple(32000, 44100, 48000, 44100, 20, 20), + ::testing::make_tuple(32000, 44100, 32000, 44100, 20, 15), + ::testing::make_tuple(32000, 44100, 16000, 44100, 20, 15), + ::testing::make_tuple(32000, 32000, 48000, 32000, 40, 35), + ::testing::make_tuple(32000, 32000, 32000, 32000, 0, 0), + ::testing::make_tuple(32000, 32000, 16000, 32000, 40, 20), + ::testing::make_tuple(32000, 16000, 48000, 16000, 25, 20), + ::testing::make_tuple(32000, 16000, 32000, 16000, 25, 20), + ::testing::make_tuple(32000, 16000, 16000, 16000, 25, 0), + + ::testing::make_tuple(16000, 48000, 48000, 48000, 25, 0), + ::testing::make_tuple(16000, 48000, 32000, 48000, 25, 30), + ::testing::make_tuple(16000, 48000, 16000, 48000, 25, 20), + ::testing::make_tuple(16000, 44100, 48000, 44100, 15, 20), + ::testing::make_tuple(16000, 44100, 32000, 44100, 15, 15), + ::testing::make_tuple(16000, 44100, 16000, 44100, 15, 15), + ::testing::make_tuple(16000, 32000, 48000, 32000, 25, 35), + ::testing::make_tuple(16000, 32000, 32000, 32000, 25, 0), + ::testing::make_tuple(16000, 32000, 16000, 32000, 25, 20), + ::testing::make_tuple(16000, 16000, 48000, 16000, 40, 20), + ::testing::make_tuple(16000, 16000, 32000, 16000, 50, 20), + ::testing::make_tuple(16000, 16000, 16000, 16000, 0, 0))); #elif defined(WEBRTC_AUDIOPROC_FIXED_PROFILE) INSTANTIATE_TEST_CASE_P( CommonFormats, AudioProcessingTest, - testing::Values(std::tr1::make_tuple(48000, 48000, 48000, 48000, 20, 0), - std::tr1::make_tuple(48000, 48000, 32000, 48000, 20, 30), - std::tr1::make_tuple(48000, 48000, 16000, 48000, 20, 20), - std::tr1::make_tuple(48000, 44100, 48000, 44100, 15, 20), - std::tr1::make_tuple(48000, 44100, 32000, 44100, 15, 15), - std::tr1::make_tuple(48000, 44100, 16000, 44100, 15, 15), - std::tr1::make_tuple(48000, 32000, 48000, 32000, 20, 35), - std::tr1::make_tuple(48000, 32000, 32000, 32000, 20, 0), - std::tr1::make_tuple(48000, 32000, 16000, 32000, 20, 20), - std::tr1::make_tuple(48000, 16000, 48000, 16000, 20, 20), - std::tr1::make_tuple(48000, 16000, 32000, 16000, 20, 20), - std::tr1::make_tuple(48000, 16000, 16000, 16000, 20, 0), - - std::tr1::make_tuple(44100, 48000, 48000, 48000, 20, 0), - std::tr1::make_tuple(44100, 48000, 32000, 48000, 20, 30), - std::tr1::make_tuple(44100, 48000, 16000, 48000, 20, 20), - std::tr1::make_tuple(44100, 44100, 48000, 44100, 15, 20), - std::tr1::make_tuple(44100, 44100, 32000, 44100, 15, 15), - std::tr1::make_tuple(44100, 44100, 16000, 44100, 15, 15), - std::tr1::make_tuple(44100, 32000, 48000, 32000, 20, 35), - std::tr1::make_tuple(44100, 32000, 32000, 32000, 20, 0), - std::tr1::make_tuple(44100, 32000, 16000, 32000, 20, 20), - std::tr1::make_tuple(44100, 16000, 48000, 16000, 20, 20), - std::tr1::make_tuple(44100, 16000, 32000, 16000, 20, 20), - std::tr1::make_tuple(44100, 16000, 16000, 16000, 20, 0), - - std::tr1::make_tuple(32000, 48000, 48000, 48000, 20, 0), - std::tr1::make_tuple(32000, 48000, 32000, 48000, 20, 30), - std::tr1::make_tuple(32000, 48000, 16000, 48000, 20, 20), - std::tr1::make_tuple(32000, 44100, 48000, 44100, 15, 20), - std::tr1::make_tuple(32000, 44100, 32000, 44100, 15, 15), - std::tr1::make_tuple(32000, 44100, 16000, 44100, 15, 15), - std::tr1::make_tuple(32000, 32000, 48000, 32000, 20, 35), - std::tr1::make_tuple(32000, 32000, 32000, 32000, 20, 0), - std::tr1::make_tuple(32000, 32000, 16000, 32000, 20, 20), - std::tr1::make_tuple(32000, 16000, 48000, 16000, 20, 20), - std::tr1::make_tuple(32000, 16000, 32000, 16000, 20, 20), - std::tr1::make_tuple(32000, 16000, 16000, 16000, 20, 0), - - std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0), - std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30), - std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20), - std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20), - std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15), - std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15), - std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35), - std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0), - std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20), - std::tr1::make_tuple(16000, 16000, 48000, 16000, 35, 20), - std::tr1::make_tuple(16000, 16000, 32000, 16000, 40, 20), - std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0))); + testing::Values(::testing::make_tuple(48000, 48000, 48000, 48000, 20, 0), + ::testing::make_tuple(48000, 48000, 32000, 48000, 20, 30), + ::testing::make_tuple(48000, 48000, 16000, 48000, 20, 20), + ::testing::make_tuple(48000, 44100, 48000, 44100, 15, 20), + ::testing::make_tuple(48000, 44100, 32000, 44100, 15, 15), + ::testing::make_tuple(48000, 44100, 16000, 44100, 15, 15), + ::testing::make_tuple(48000, 32000, 48000, 32000, 20, 35), + ::testing::make_tuple(48000, 32000, 32000, 32000, 20, 0), + ::testing::make_tuple(48000, 32000, 16000, 32000, 20, 20), + ::testing::make_tuple(48000, 16000, 48000, 16000, 20, 20), + ::testing::make_tuple(48000, 16000, 32000, 16000, 20, 20), + ::testing::make_tuple(48000, 16000, 16000, 16000, 20, 0), + + ::testing::make_tuple(44100, 48000, 48000, 48000, 20, 0), + ::testing::make_tuple(44100, 48000, 32000, 48000, 20, 30), + ::testing::make_tuple(44100, 48000, 16000, 48000, 20, 20), + ::testing::make_tuple(44100, 44100, 48000, 44100, 15, 20), + ::testing::make_tuple(44100, 44100, 32000, 44100, 15, 15), + ::testing::make_tuple(44100, 44100, 16000, 44100, 15, 15), + ::testing::make_tuple(44100, 32000, 48000, 32000, 20, 35), + ::testing::make_tuple(44100, 32000, 32000, 32000, 20, 0), + ::testing::make_tuple(44100, 32000, 16000, 32000, 20, 20), + ::testing::make_tuple(44100, 16000, 48000, 16000, 20, 20), + ::testing::make_tuple(44100, 16000, 32000, 16000, 20, 20), + ::testing::make_tuple(44100, 16000, 16000, 16000, 20, 0), + + ::testing::make_tuple(32000, 48000, 48000, 48000, 20, 0), + ::testing::make_tuple(32000, 48000, 32000, 48000, 20, 30), + ::testing::make_tuple(32000, 48000, 16000, 48000, 20, 20), + ::testing::make_tuple(32000, 44100, 48000, 44100, 15, 20), + ::testing::make_tuple(32000, 44100, 32000, 44100, 15, 15), + ::testing::make_tuple(32000, 44100, 16000, 44100, 15, 15), + ::testing::make_tuple(32000, 32000, 48000, 32000, 20, 35), + ::testing::make_tuple(32000, 32000, 32000, 32000, 20, 0), + ::testing::make_tuple(32000, 32000, 16000, 32000, 20, 20), + ::testing::make_tuple(32000, 16000, 48000, 16000, 20, 20), + ::testing::make_tuple(32000, 16000, 32000, 16000, 20, 20), + ::testing::make_tuple(32000, 16000, 16000, 16000, 20, 0), + + ::testing::make_tuple(16000, 48000, 48000, 48000, 25, 0), + ::testing::make_tuple(16000, 48000, 32000, 48000, 25, 30), + ::testing::make_tuple(16000, 48000, 16000, 48000, 25, 20), + ::testing::make_tuple(16000, 44100, 48000, 44100, 15, 20), + ::testing::make_tuple(16000, 44100, 32000, 44100, 15, 15), + ::testing::make_tuple(16000, 44100, 16000, 44100, 15, 15), + ::testing::make_tuple(16000, 32000, 48000, 32000, 25, 35), + ::testing::make_tuple(16000, 32000, 32000, 32000, 25, 0), + ::testing::make_tuple(16000, 32000, 16000, 32000, 25, 20), + ::testing::make_tuple(16000, 16000, 48000, 16000, 35, 20), + ::testing::make_tuple(16000, 16000, 32000, 16000, 40, 20), + ::testing::make_tuple(16000, 16000, 16000, 16000, 0, 0))); #endif } // namespace |