From 5166e54a3dbcdad0da6fe726824fd50f688dd512 Mon Sep 17 00:00:00 2001 From: mbonadei Date: Thu, 3 Aug 2017 05:57:11 -0700 Subject: [PATCH] Tracking mock_process_thread with a GN target include/mock/mock_process_thread.h was not tracked by GN. This cl creates a target for it. The target is testonly because it depends on "webrtc/test:rtp_test_utils". This means that dependencies to this header cannot fly under the GN radar anymore. :) BUG=webrtc:7652 NOTRY=True Review-Url: https://codereview.webrtc.org/2881343003 Cr-Commit-Position: refs/heads/master@{#19234} --- webrtc/call/BUILD.gn | 1 + webrtc/modules/utility/BUILD.gn | 12 ++++++++++++ webrtc/video/BUILD.gn | 1 + 3 files changed, 14 insertions(+) diff --git a/webrtc/call/BUILD.gn b/webrtc/call/BUILD.gn index 62b8ac465f..813f92b4ab 100644 --- a/webrtc/call/BUILD.gn +++ b/webrtc/call/BUILD.gn @@ -158,6 +158,7 @@ if (rtc_include_tests) { "../modules/pacing", "../modules/rtp_rtcp", "../modules/rtp_rtcp:mock_rtp_rtcp", + "../modules/utility:mock_process_thread", "../rtc_base:rtc_base_approved", "../system_wrappers", "../test:audio_codec_mocks", diff --git a/webrtc/modules/utility/BUILD.gn b/webrtc/modules/utility/BUILD.gn index b40cbd5055..29ff042954 100644 --- a/webrtc/modules/utility/BUILD.gn +++ b/webrtc/modules/utility/BUILD.gn @@ -40,6 +40,18 @@ rtc_static_library("utility") { ] } +rtc_source_set("mock_process_thread") { + testonly = true + sources = [ + "include/mock/mock_process_thread.h", + ] + deps = [ + ":utility", + "../../rtc_base:rtc_base_approved", + "../../test:test_support", + ] +} + if (rtc_include_tests) { rtc_source_set("utility_unittests") { testonly = true diff --git a/webrtc/video/BUILD.gn b/webrtc/video/BUILD.gn index f9c3453d59..f85510cd9c 100644 --- a/webrtc/video/BUILD.gn +++ b/webrtc/video/BUILD.gn @@ -277,6 +277,7 @@ if (rtc_include_tests) { "../modules/rtp_rtcp", "../modules/rtp_rtcp:mock_rtp_rtcp", "../modules/utility", + "../modules/utility:mock_process_thread", "../modules/video_coding", "../modules/video_coding:video_coding_utility", "../modules/video_coding:webrtc_h264",