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

Unified Diff: webrtc/modules/audio_processing/BUILD.gn

Issue 2041233006: GN: Add modules_unittests (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Correct path to base.gyp Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/BUILD.gn
diff --git a/webrtc/modules/audio_processing/BUILD.gn b/webrtc/modules/audio_processing/BUILD.gn
index e249c858fa40896812b7ffa76d675ebcd50b0d17..037e6bbf85dab92e0ca20cd2b85733aff09c404d 100644
--- a/webrtc/modules/audio_processing/BUILD.gn
+++ b/webrtc/modules/audio_processing/BUILD.gn
@@ -211,8 +211,7 @@ source_set("audio_processing") {
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
if (is_clang) {
- # Suppress warnings from Chrome's Clang plugins.
- # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
+ # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
configs -= [ "//build/config/clang:find_bad_constructs" ]
}
@@ -295,3 +294,46 @@ if (rtc_build_with_neon) {
}
}
}
+
+if (rtc_include_tests) {
+ source_set("audioproc_test_utils") {
+ testonly = true
+ sources = [
+ "test/test_utils.cc",
+ "test/test_utils.h",
+ ]
+
+ configs += [ "../..:common_config" ]
+ public_configs = [ "../..:common_inherited_config" ]
+
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
+ }
+
+ deps = [
+ "../../base:rtc_base_approved",
+ "../../common_audio",
+ ]
+ }
+
+ if (rtc_enable_protobuf) {
+ proto_library("audioproc_unittest_proto") {
+ sources = [
+ "test/unittest.proto",
+ ]
+ proto_out_dir = "webrtc/modules/audio_processing"
+ }
+
+ source_set("audioproc_protobuf_utils") {
+ sources = [
+ "test/protobuf_utils.cc",
+ "test/protobuf_utils.h",
+ ]
+
+ deps = [
+ ":audioproc_unittest_proto",
+ ]
+ }
+ }
+}
« no previous file with comments | « webrtc/modules/audio_device/BUILD.gn ('k') | webrtc/modules/audio_processing/echo_cancellation_bit_exact_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698