Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: chrome/installer/util/lzma_file_allocator_unittest.cc

Issue 2321573002: //chrome misc: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Fix Win compilation Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/util/logging_installer_unittest.cc ('k') | chrome/installer/util/lzma_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/lzma_file_allocator_unittest.cc
diff --git a/chrome/installer/util/lzma_file_allocator_unittest.cc b/chrome/installer/util/lzma_file_allocator_unittest.cc
index 6df6fb40386d95e62b6ce88b3a514e484ca6d537..c4e535e6f8dca9ae99d3529b6a63037b3ccbda4c 100644
--- a/chrome/installer/util/lzma_file_allocator_unittest.cc
+++ b/chrome/installer/util/lzma_file_allocator_unittest.cc
@@ -41,7 +41,7 @@ TEST_F(LzmaFileAllocatorTest, ReadAndWriteWithMultipleSizeTest) {
sysinfo.dwPageSize + 1};
for (size_t size : size_list) {
- LzmaFileAllocator allocator(temp_dir_.path());
+ LzmaFileAllocator allocator(temp_dir_.GetPath());
char* s = reinterpret_cast<char*>(IAlloc_Alloc(&allocator, size));
std::fill_n(s, size, kSampleExpectedCharacter);
char* ret = std::find_if(s, s + size, [&kSampleExpectedCharacter](char c) {
@@ -55,7 +55,7 @@ TEST_F(LzmaFileAllocatorTest, ReadAndWriteWithMultipleSizeTest) {
}
TEST_F(LzmaFileAllocatorTest, SizeIsZeroTest) {
- LzmaFileAllocator allocator(temp_dir_.path());
+ LzmaFileAllocator allocator(temp_dir_.GetPath());
char* s = reinterpret_cast<char*>(IAlloc_Alloc(&allocator, 0));
EXPECT_EQ(s, nullptr);
@@ -64,7 +64,7 @@ TEST_F(LzmaFileAllocatorTest, SizeIsZeroTest) {
TEST_F(LzmaFileAllocatorTest, DeleteAfterCloseTest) {
std::unique_ptr<LzmaFileAllocator> allocator =
- base::MakeUnique<LzmaFileAllocator>(temp_dir_.path());
+ base::MakeUnique<LzmaFileAllocator>(temp_dir_.GetPath());
base::FilePath file_path = allocator->mapped_file_path_;
ASSERT_TRUE(base::PathExists(file_path));
allocator.reset();
@@ -72,7 +72,7 @@ TEST_F(LzmaFileAllocatorTest, DeleteAfterCloseTest) {
}
TEST_F(LzmaFileAllocatorTest, ErrorAndFallbackTest) {
- LzmaFileAllocator allocator(temp_dir_.path());
+ LzmaFileAllocator allocator(temp_dir_.GetPath());
allocator.mapped_file_.Close();
char* s = reinterpret_cast<char*>(IAlloc_Alloc(&allocator, 10));
EXPECT_NE(nullptr, s);
« no previous file with comments | « chrome/installer/util/logging_installer_unittest.cc ('k') | chrome/installer/util/lzma_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698