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

Fix a protected data member in a test. (#4717)

Richard Smith 1 год назад
Родитель
Сommit
de41a4b1b3
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      toolchain/lex/numeric_literal_test.cpp
  2. 1 1
      toolchain/parse/tree_test.cpp

+ 1 - 1
toolchain/lex/numeric_literal_test.cpp

@@ -22,7 +22,7 @@ using ::testing::Truly;
 using ::testing::VariantWith;
 
 class NumericLiteralTest : public ::testing::Test {
- protected:
+ public:
   NumericLiteralTest() : error_tracker(ConsoleDiagnosticConsumer()) {}
 
   auto Lex(llvm::StringRef text) -> NumericLiteral {

+ 1 - 1
toolchain/parse/tree_test.cpp

@@ -30,7 +30,7 @@ using ::testing::Pair;
 namespace Yaml = ::Carbon::Testing::Yaml;
 
 class TreeTest : public ::testing::Test {
- protected:
+ public:
   Testing::CompileHelper compile_helper_;
 };