| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/files/memory_mapped_file.h" | 5 #include "base/files/memory_mapped_file.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <utility> | 10 #include <utility> |
| 8 | 11 |
| 9 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" |
| 13 | 16 |
| 14 namespace base { | 17 namespace base { |
| 15 | 18 |
| 16 namespace { | 19 namespace { |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 map.Initialize(std::move(file), region); | 166 map.Initialize(std::move(file), region); |
| 164 ASSERT_EQ(kPartialSize, map.length()); | 167 ASSERT_EQ(kPartialSize, map.length()); |
| 165 ASSERT_TRUE(map.data() != NULL); | 168 ASSERT_TRUE(map.data() != NULL); |
| 166 EXPECT_TRUE(map.IsValid()); | 169 EXPECT_TRUE(map.IsValid()); |
| 167 ASSERT_TRUE(CheckBufferContents(map.data(), kPartialSize, kOffset)); | 170 ASSERT_TRUE(CheckBufferContents(map.data(), kPartialSize, kOffset)); |
| 168 } | 171 } |
| 169 | 172 |
| 170 } // namespace | 173 } // namespace |
| 171 | 174 |
| 172 } // namespace base | 175 } // namespace base |
| OLD | NEW |