diff --git a/src/google/protobuf/io/zero_copy_stream_unittest.cc b/src/google/protobuf/io/zero_copy_stream_unittest.cc index 504c2c40ff..453c825be1 100644 --- a/src/google/protobuf/io/zero_copy_stream_unittest.cc +++ b/src/google/protobuf/io/zero_copy_stream_unittest.cc @@ -45,7 +45,6 @@ #include "google/protobuf/stubs/common.h" #include "google/protobuf/testing/file.h" #include "google/protobuf/testing/file.h" -#include "google/protobuf/testing/googletest.h" #include #include "absl/log/absl_check.h" #include "absl/log/absl_log.h" @@ -1403,7 +1402,7 @@ TEST_F(IoTest, CordOutputBufferEndsAtSizeHint) { // To test files, we create a temporary file, write, read, truncate, repeat. TEST_F(IoTest, FileIo) { std::string filename = - absl::StrCat(TestTempDir(), "/zero_copy_stream_test_file"); + absl::StrCat(::testing::TempDir(), "/zero_copy_stream_test_file"); for (int i = 0; i < kBlockSizeCount; i++) { for (int j = 0; j < kBlockSizeCount; j++) { @@ -1501,7 +1500,7 @@ TEST_F(IoTest, BlockingFileIoWithTimeout) { #if HAVE_ZLIB TEST_F(IoTest, GzipFileIo) { std::string filename = - absl::StrCat(TestTempDir(), "/zero_copy_stream_test_file"); + absl::StrCat(::testing::TempDir(), "/zero_copy_stream_test_file"); for (int i = 0; i < kBlockSizeCount; i++) { for (int j = 0; j < kBlockSizeCount; j++) {