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

Side by Side Diff: webrtc/modules/audio_processing/test/fake_recording_device_unittest.cc

Issue 2846853002: audioproc_f with fake microphone. (Closed)
Patch Set: Initialized FakeRecordingDevice, added 'kind' command line flag, fixed bugs. Created 3 years, 7 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
« no previous file with comments | « webrtc/modules/audio_processing/test/fake_recording_device.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/fake_recording_device.h"
12 #include "webrtc/test/gtest.h"
13
14 TEST(AnalogVolumeMapper, GainCurveShouldBeMonotone) {
15 // using MappingKind = webrtc::FakeRecordingDevice::LevelToScalingMappingKind;
16
17 // for (auto kind : {MappingKind::kLinear}) {
18 // webrtc::FakeRecordingDevice level_mapper(kind);
19 // float last_level = level_mapper.GetScalingFactor();
20 // RTC_DCHECK_LE(0.f, last_level);
21
22 // for (int i = 0; i < 255; ++i) {
23 // level_mapper.set_analog_level(i);
24 // const float current_level = level_mapper.GetScalingFactor();
25 // RTC_DCHECK_LE(last_level, current_level);
26
27 // last_level = current_level;
28 // }
29 // }
30 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/test/fake_recording_device.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698