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

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

Issue 2722453002: Adding metrics to AEC3 (Closed)
Patch Set: Changed some of the names for the metrics Created 3 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
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/aec3_common.h"
12 #include "webrtc/modules/audio_processing/aec3/block_processor_metrics.h"
13
14 #include "webrtc/test/gtest.h"
15
16 namespace webrtc {
17
18 // Verify the general functionality of BlockProcessorMetrics.
19 TEST(BlockProcessorMetrics, NormalUsage) {
20 BlockProcessorMetrics metrics;
21
22 for (int j = 0; j < 3; ++j) {
23 for (int k = 0; k < kMetricsReportingIntervalBlocks - 1; ++k) {
24 metrics.UpdateRender(false);
25 metrics.UpdateRender(false);
26 metrics.UpdateCapture(false);
27 EXPECT_FALSE(metrics.MetricsReported());
28 }
29 metrics.UpdateCapture(false);
30 EXPECT_TRUE(metrics.MetricsReported());
31 }
32 }
33
34 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/block_processor_metrics.cc ('k') | webrtc/modules/audio_processing/aec3/echo_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698