| 122 | } |
| 123 | |
| 124 | void InitializeFile(const base::FilePath& path, |
| 125 | size_t size, |
| 126 | ScopedFileHandle* handle) { |
| 127 | ASSERT_FALSE(FileExists(path)); |
| 128 | |
| 129 | handle->reset(LoggingOpenFileForReadAndWrite( |
| 130 | path, FileWriteMode::kReuseOrCreate, FilePermissions::kOwnerOnly)); |
| 131 | ASSERT_TRUE(handle->is_valid()); |
| 132 | std::string file_contents(size, std::string::value_type()); |
| 133 | CheckedWriteFile(handle->get(), file_contents.c_str(), file_contents.size()); |
| 134 | } |
| 135 | |
| 136 | class MapChildTest : public Multiprocess { |
| 137 | public: |
no test coverage detected