From 823b1b3ce9c04b5a61cedf38630431de6f821fd4 Mon Sep 17 00:00:00 2001 From: Pavel Kobyakov Date: Wed, 15 Dec 2021 17:24:26 -0500 Subject: [PATCH] More minor cleanup: added missing gtest build dep for toolchain/lexer:test_helpers and switched to use system include for gmock header. --- toolchain/lexer/BUILD | 1 + toolchain/lexer/test_helpers.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/toolchain/lexer/BUILD b/toolchain/lexer/BUILD index 28ebfaf05a7af..9c977d728fab4 100644 --- a/toolchain/lexer/BUILD +++ b/toolchain/lexer/BUILD @@ -40,6 +40,7 @@ cc_library( deps = [ "//common:check", "//toolchain/diagnostics:diagnostic_emitter", + "@com_google_googletest//:gtest", "@llvm-project//llvm:Support", ], ) diff --git a/toolchain/lexer/test_helpers.h b/toolchain/lexer/test_helpers.h index 11814824c63ad..f66cfdd64103d 100644 --- a/toolchain/lexer/test_helpers.h +++ b/toolchain/lexer/test_helpers.h @@ -5,11 +5,12 @@ #ifndef TOOLCHAIN_LEXER_TEST_HELPERS_H_ #define TOOLCHAIN_LEXER_TEST_HELPERS_H_ +#include + #include #include #include "common/check.h" -#include "gmock/gmock.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/FormatVariadic.h" #include "toolchain/diagnostics/diagnostic_emitter.h"