From de41a4b1b30b7ae42da5f71e82161dfebb32dc0c Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 19 Dec 2024 14:01:18 -0800 Subject: [PATCH] Fix a protected data member in a test. (#4717) --- toolchain/lex/numeric_literal_test.cpp | 2 +- toolchain/parse/tree_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toolchain/lex/numeric_literal_test.cpp b/toolchain/lex/numeric_literal_test.cpp index 81be741dc927..ccda4ede97b5 100644 --- a/toolchain/lex/numeric_literal_test.cpp +++ b/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 { diff --git a/toolchain/parse/tree_test.cpp b/toolchain/parse/tree_test.cpp index 291f06a7bc1c..66bb132f0988 100644 --- a/toolchain/parse/tree_test.cpp +++ b/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_; };