소스 검색

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

Richard Smith 1 년 전
부모
커밋
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_;
 };