aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMirko Bonadei <mbonadei@webrtc.org>2020-06-03 20:55:37 +0200
committerCommit Bot <commit-bot@chromium.org>2020-06-03 22:08:46 +0000
commit5d511a5c0bd54c247bd86bed849c93006ffa1dde (patch)
tree552353c89ef9990de1300977c3db5b67a3e0d3c8 /test
parent447cd3e6230f27e9ce1cce6b79610e4b70248a9d (diff)
downloadwebrtc-5d511a5c0bd54c247bd86bed849c93006ffa1dde.tar.gz
Include correct ABSL_DECLARE_FLAG header.
The absl/flags/flag.h header is not #including absl/flags/declare.h starting from [1] so this transitive #include needs to be removed. [1] - https://chromium-review.googlesource.com/c/chromium/src/+/2228841 Bug: None Change-Id: I06e78ed05e0fb570a9ecc8621ec3ae5298fffd1a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176444 Reviewed-by: Artem Titov <titovartem@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31433}
Diffstat (limited to 'test')
-rw-r--r--test/testsupport/resources_dir_flag.cc2
-rw-r--r--test/testsupport/resources_dir_flag.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/testsupport/resources_dir_flag.cc b/test/testsupport/resources_dir_flag.cc
index a6ab3b537b..87a449a401 100644
--- a/test/testsupport/resources_dir_flag.cc
+++ b/test/testsupport/resources_dir_flag.cc
@@ -10,6 +10,8 @@
#include "test/testsupport/resources_dir_flag.h"
+#include "absl/flags/flag.h"
+
ABSL_FLAG(std::string,
resources_dir,
"",
diff --git a/test/testsupport/resources_dir_flag.h b/test/testsupport/resources_dir_flag.h
index 055cc82546..7d6f192d9b 100644
--- a/test/testsupport/resources_dir_flag.h
+++ b/test/testsupport/resources_dir_flag.h
@@ -13,7 +13,7 @@
#ifndef TEST_TESTSUPPORT_RESOURCES_DIR_FLAG_H__
#define TEST_TESTSUPPORT_RESOURCES_DIR_FLAG_H__
-#include "absl/flags/flag.h"
+#include "absl/flags/declare.h"
ABSL_DECLARE_FLAG(std::string, resources_dir);