|
|
|
@ -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 <gtest/gtest.h> |
|
|
|
|
#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++) { |
|
|
|
|