Просмотр исходного кода

More minor cleanup: added missing gtest build dep for toolchain/lexer:test_helpers and switched to use system include for gmock header. (#993)

pk19604014 4 лет назад
Родитель
Сommit
3ffd3e09d5
2 измененных файлов с 3 добавлено и 1 удалено
  1. 1 0
      toolchain/lexer/BUILD
  2. 2 1
      toolchain/lexer/test_helpers.h

+ 1 - 0
toolchain/lexer/BUILD

@@ -41,6 +41,7 @@ cc_library(
     deps = [
         "//common:check",
         "//toolchain/diagnostics:diagnostic_emitter",
+        "@com_google_googletest//:gtest",
         "@llvm-project//llvm:Support",
     ],
 )

+ 2 - 1
toolchain/lexer/test_helpers.h

@@ -5,11 +5,12 @@
 #ifndef TOOLCHAIN_LEXER_TEST_HELPERS_H_
 #define TOOLCHAIN_LEXER_TEST_HELPERS_H_
 
+#include <gmock/gmock.h>
+
 #include <array>
 #include <string>
 
 #include "common/check.h"
-#include "gmock/gmock.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/Support/FormatVariadic.h"
 #include "toolchain/diagnostics/diagnostic_emitter.h"