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_; };