From 15212f3d4e602666e2a194735c13cd9e1745a072 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Tue, 18 Sep 2018 23:41:33 +0200 Subject: [PATCH] Fix WebRTC fuzzers tests in Chromium. When WebRTC fuzzers tests are built on Chromium bots they need to link with Chromium's implementation of metrics. TBR=phoglund@webrtc.org Bug: webrtc:9631 Change-Id: I1c955e646366b6b37d3ca595888e8cc94fe1b00e Reviewed-on: https://webrtc-review.googlesource.com/100940 Commit-Queue: Mirko Bonadei Reviewed-by: Christian Fremerey Cr-Commit-Position: refs/heads/master@{#24771} --- test/fuzzers/BUILD.gn | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/fuzzers/BUILD.gn b/test/fuzzers/BUILD.gn index e006c6a671..79c4da8b09 100644 --- a/test/fuzzers/BUILD.gn +++ b/test/fuzzers/BUILD.gn @@ -21,6 +21,12 @@ rtc_static_library("webrtc_fuzzer_main") { "../../system_wrappers:runtime_enabled_features_default", "//testing/libfuzzer:libfuzzer_main", ] + + # When WebRTC fuzzer tests are built on Chromium bots they need to link + # with Chromium's implementation of metrics. + if (build_with_chromium) { + deps += [ "../../../webrtc_overrides:metrics" ] + } } rtc_static_library("fuzz_data_helper") {