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

Side by Side Diff: webrtc/modules/audio_processing/audio_processing_unittest.cc

Issue 2716413004: Restructure protobuf targets to fit with downstream requirements. (Closed)
Patch Set: 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
« no previous file with comments | « webrtc/modules/audio_processing/BUILD.gn ('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
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 23 matching lines...) Expand all
34 #include "webrtc/modules/include/module_common_types.h" 34 #include "webrtc/modules/include/module_common_types.h"
35 #include "webrtc/system_wrappers/include/event_wrapper.h" 35 #include "webrtc/system_wrappers/include/event_wrapper.h"
36 #include "webrtc/system_wrappers/include/trace.h" 36 #include "webrtc/system_wrappers/include/trace.h"
37 #include "webrtc/test/gtest.h" 37 #include "webrtc/test/gtest.h"
38 #include "webrtc/test/testsupport/fileutils.h" 38 #include "webrtc/test/testsupport/fileutils.h"
39 39
40 RTC_PUSH_IGNORING_WUNDEF() 40 RTC_PUSH_IGNORING_WUNDEF()
41 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD 41 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD
42 #include "external/webrtc/webrtc/modules/audio_processing/test/unittest.pb.h" 42 #include "external/webrtc/webrtc/modules/audio_processing/test/unittest.pb.h"
43 #else 43 #else
44 #include "webrtc/modules/audio_processing/unittest.pb.h" 44 #include "webrtc/modules/audio_processing/test/unittest.pb.h"
45 #endif 45 #endif
46 RTC_POP_IGNORING_WUNDEF() 46 RTC_POP_IGNORING_WUNDEF()
47 47
48 namespace webrtc { 48 namespace webrtc {
49 namespace { 49 namespace {
50 50
51 // TODO(ekmeyerson): Switch to using StreamConfig and ProcessingConfig where 51 // TODO(ekmeyerson): Switch to using StreamConfig and ProcessingConfig where
52 // applicable. 52 // applicable.
53 53
54 // TODO(bjornv): This is not feasible until the functionality has been 54 // TODO(bjornv): This is not feasible until the functionality has been
(...skipping 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after
2877 // TODO(peah): Remove the testing for 2877 // TODO(peah): Remove the testing for
2878 // apm->capture_nonlocked_.level_controller_enabled once the value in config_ 2878 // apm->capture_nonlocked_.level_controller_enabled once the value in config_
2879 // is instead used to activate the level controller. 2879 // is instead used to activate the level controller.
2880 EXPECT_FALSE(apm->capture_nonlocked_.level_controller_enabled); 2880 EXPECT_FALSE(apm->capture_nonlocked_.level_controller_enabled);
2881 EXPECT_NEAR(kTargetLcPeakLeveldBFS, 2881 EXPECT_NEAR(kTargetLcPeakLeveldBFS,
2882 apm->config_.level_controller.initial_peak_level_dbfs, 2882 apm->config_.level_controller.initial_peak_level_dbfs,
2883 std::numeric_limits<float>::epsilon()); 2883 std::numeric_limits<float>::epsilon());
2884 } 2884 }
2885 2885
2886 } // namespace webrtc 2886 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698