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

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

Issue 2784023002: Major AEC3 render pipeline changes (Closed)
Patch Set: Corrected buffer lengths 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 namespace {} // namespace
ivoc 2017/03/31 13:58:31 Can be removed?
peah-webrtc 2017/04/03 08:02:33 Done.
21
22 #if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID)
23
24 // Verifies that the check for that the provided numbers of Ffts to include in
ivoc 2017/03/31 13:58:31 The comment is hard to read, my suggestion: Verifi
peah-webrtc 2017/04/03 08:02:33 Nice! Done.
25 // the spectral sum is equal to the one supported works.
26 TEST(RenderBuffer, TooLargeNumberOfSpectralSums) {
27 EXPECT_DEATH(
28 RenderBuffer(Aec3Optimization::kNone, 3, 1, std::vector<size_t>(2, 1)),
29 "");
30 }
31
32 TEST(RenderBuffer, TooSmallNumberOfSpectralSums) {
33 EXPECT_DEATH(
34 RenderBuffer(Aec3Optimization::kNone, 3, 1, std::vector<size_t>()), "");
35 }
36
37 // Verifies that the check for that the provided number of Ffts to to include in
38 // the spectral is feasible works.
ivoc 2017/03/31 13:58:31 Also hard to read, consider simplifying.
peah-webrtc 2017/04/03 08:02:33 Done.
39 TEST(RenderBuffer, FeasibleNumberOfFftsInSum) {
40 EXPECT_DEATH(
41 RenderBuffer(Aec3Optimization::kNone, 3, 1, std::vector<size_t>(1, 2)),
42 "");
43 }
44
45 #endif
46
47 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698