From 4b6463c0c90eb8b41f5009e0859683e5fcae6b63 Mon Sep 17 00:00:00 2001 From: alessiob Date: Thu, 23 Mar 2017 05:17:06 -0700 Subject: [PATCH] Conversational Speech tool, rtc_test target replaced with entry in modules_unittests The ConversationalSpeechTest.* unit tests are now part of modules_unittests. The rtc_test target has been replaced with an rtc_source_set one. The latter is included as dependency in audio_processing_unittests. BUG=webrtc:7218 Review-Url: https://codereview.webrtc.org/2769863005 Cr-Commit-Position: refs/heads/master@{#17360} --- webrtc/modules/audio_processing/BUILD.gn | 1 + .../test/conversational_speech/BUILD.gn | 21 ++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/webrtc/modules/audio_processing/BUILD.gn b/webrtc/modules/audio_processing/BUILD.gn index b20e3b5ad1..36f55756f8 100644 --- a/webrtc/modules/audio_processing/BUILD.gn +++ b/webrtc/modules/audio_processing/BUILD.gn @@ -530,6 +530,7 @@ if (rtc_include_tests) { "../../system_wrappers:system_wrappers", "../../test:test_support", "../audio_coding:neteq_unittest_tools", + "test/conversational_speech:unittest", "//testing/gmock", "//testing/gtest", ] diff --git a/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn b/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn index e85e1e3b1c..4375c4efb3 100644 --- a/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn +++ b/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn @@ -12,7 +12,6 @@ group("conversational_speech") { testonly = true deps = [ ":conversational_speech_generator", - ":conversational_speech_generator_unittest", ] } @@ -27,8 +26,7 @@ rtc_executable("conversational_speech_generator") { "//webrtc/base:rtc_base_approved", "//webrtc/test:test_support", ] - visibility = [ ":*" ] # Only targets in this file can depend on this. -} # bin +} rtc_static_library("lib") { testonly = true @@ -42,18 +40,17 @@ rtc_static_library("lib") { "//webrtc/base:rtc_base_approved", ] visibility = [ ":*" ] # Only targets in this file can depend on this. -} # lib +} -rtc_test("conversational_speech_generator_unittest") { +rtc_source_set("unittest") { testonly = true - deps = [ - ":lib", - "//testing/gtest", - "//webrtc//base:rtc_base_tests_main", - "//webrtc/test:test_support", - ] sources = [ "generator_unittest.cc", ] - visibility = [ ":*" ] # Only targets in this file can depend on this. + deps = [ + ":lib", + "//testing/gmock", + "//testing/gtest", + "//webrtc/test:test_support", + ] }