Index: base/files/memory_mapped_file_unittest.cc |
diff --git a/base/files/memory_mapped_file_unittest.cc b/base/files/memory_mapped_file_unittest.cc |
index d0833b5cc9a24459857a356b5a7f013ca1ba8c49..05b941c308af2d8b3ae5e0d28e4e5e1425386acb 100644 |
--- a/base/files/memory_mapped_file_unittest.cc |
+++ b/base/files/memory_mapped_file_unittest.cc |
@@ -107,7 +107,8 @@ TEST_F(MemoryMappedFileTest, MapPartialRegionAtBeginning) { |
MemoryMappedFile map; |
File file(temp_file_path(), File::FLAG_OPEN | File::FLAG_READ); |
- map.Initialize(file.Pass(), MemoryMappedFile::Region(0, kPartialSize)); |
+ MemoryMappedFile::Region region = {0, kPartialSize}; |
+ map.Initialize(file.Pass(), region); |
ASSERT_EQ(kPartialSize, map.length()); |
ASSERT_TRUE(map.data() != NULL); |
EXPECT_TRUE(map.IsValid()); |
@@ -122,7 +123,8 @@ TEST_F(MemoryMappedFileTest, MapPartialRegionAtEnd) { |
MemoryMappedFile map; |
File file(temp_file_path(), File::FLAG_OPEN | File::FLAG_READ); |
- map.Initialize(file.Pass(), MemoryMappedFile::Region(kOffset, kPartialSize)); |
+ MemoryMappedFile::Region region = {kOffset, kPartialSize}; |
+ map.Initialize(file.Pass(), region); |
ASSERT_EQ(kPartialSize, map.length()); |
ASSERT_TRUE(map.data() != NULL); |
EXPECT_TRUE(map.IsValid()); |
@@ -138,7 +140,8 @@ TEST_F(MemoryMappedFileTest, MapSmallPartialRegionInTheMiddle) { |
MemoryMappedFile map; |
File file(temp_file_path(), File::FLAG_OPEN | File::FLAG_READ); |
- map.Initialize(file.Pass(), MemoryMappedFile::Region(kOffset, kPartialSize)); |
+ MemoryMappedFile::Region region = {kOffset, kPartialSize}; |
+ map.Initialize(file.Pass(), region); |
ASSERT_EQ(kPartialSize, map.length()); |
ASSERT_TRUE(map.data() != NULL); |
EXPECT_TRUE(map.IsValid()); |
@@ -154,7 +157,8 @@ TEST_F(MemoryMappedFileTest, MapLargePartialRegionInTheMiddle) { |
MemoryMappedFile map; |
File file(temp_file_path(), File::FLAG_OPEN | File::FLAG_READ); |
- map.Initialize(file.Pass(), MemoryMappedFile::Region(kOffset, kPartialSize)); |
+ MemoryMappedFile::Region region = {kOffset, kPartialSize}; |
+ map.Initialize(file.Pass(), region); |
ASSERT_EQ(kPartialSize, map.length()); |
ASSERT_TRUE(map.data() != NULL); |
EXPECT_TRUE(map.IsValid()); |