From 3ffd3e09d5a6713ecf0c4ebb881d4cf62e1ecd22 Mon Sep 17 00:00:00 2001 From: pk19604014 <95385881+pk19604014@users.noreply.github.com> Date: Thu, 16 Dec 2021 08:47:37 -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. (#993) --- 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 bf49f3a0bdef0..bf4573b9276fe 100644 --- a/toolchain/lexer/BUILD +++ b/toolchain/lexer/BUILD @@ -41,6 +41,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"