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

Side by Side Diff: webrtc/modules/audio_processing/aec3/render_buffer_unittest.cc

Issue 2784023002: Major AEC3 render pipeline changes (Closed)
Patch Set: Disabled one more DEATH test that caused issues due to bug on bots Created 3 years, 8 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
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #include "webrtc/modules/audio_processing/aec3/render_buffer.h"
12
13 #include <algorithm>
14 #include <functional>
15 #include <vector>
16
17 #include "webrtc/test/gtest.h"
18
19 namespace webrtc {
20
21 #if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID)
22
23 // Verifies the check for the provided numbers of Ffts to include in the
24 // spectral sum.
25 TEST(RenderBuffer, TooLargeNumberOfSpectralSums) {
26 EXPECT_DEATH(
27 RenderBuffer(Aec3Optimization::kNone, 3, 1, std::vector<size_t>(2, 1)),
28 "");
29 }
30
31 TEST(RenderBuffer, TooSmallNumberOfSpectralSums) {
32 EXPECT_DEATH(
33 RenderBuffer(Aec3Optimization::kNone, 3, 1, std::vector<size_t>()), "");
34 }
35
36 // Verifies the feasibility check for the provided number of Ffts to include in
37 // the spectral.
38 TEST(RenderBuffer, FeasibleNumberOfFftsInSum) {
39 EXPECT_DEATH(
40 RenderBuffer(Aec3Optimization::kNone, 3, 1, std::vector<size_t>(1, 2)),
41 "");
42 }
43
44 #endif
45
46 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/render_buffer.cc ('k') | webrtc/modules/audio_processing/aec3/render_delay_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698