Index: mojo/edk/test/test_utils_win.cc |
diff --git a/mojo/edk/test/test_utils_win.cc b/mojo/edk/test/test_utils_win.cc |
index 2387945774225fdd114c28084dd9d794f8c5f78f..5d5b9426dc79a13a02c5e81ea54a7d7a824c8f47 100644 |
--- a/mojo/edk/test/test_utils_win.cc |
+++ b/mojo/edk/test/test_utils_win.cc |
@@ -23,11 +23,14 @@ |
OVERLAPPED overlapped = {0}; |
DWORD bytes_written_dword = 0; |
- if (!WriteFile(handle.handle, buffer, static_cast<DWORD>(bytes_to_write), |
- &bytes_written_dword, &overlapped)) { |
+ if (!WriteFile(handle.handle, |
+ buffer, |
+ static_cast<DWORD>(bytes_to_write), |
+ &bytes_written_dword, |
+ &overlapped)) { |
if (GetLastError() != ERROR_IO_PENDING || |
- !GetOverlappedResult(handle.handle, &overlapped, &bytes_written_dword, |
- TRUE)) { |
+ !GetOverlappedResult( |
+ handle.handle, &overlapped, &bytes_written_dword, TRUE)) { |
return false; |
} |
} |
@@ -43,11 +46,14 @@ |
OVERLAPPED overlapped = {0}; |
DWORD bytes_read_dword = 0; |
- if (!ReadFile(handle.handle, buffer, static_cast<DWORD>(buffer_size), |
- &bytes_read_dword, &overlapped)) { |
+ if (!ReadFile(handle.handle, |
+ buffer, |
+ static_cast<DWORD>(buffer_size), |
+ &bytes_read_dword, |
+ &overlapped)) { |
if (GetLastError() != ERROR_IO_PENDING || |
- !GetOverlappedResult(handle.handle, &overlapped, &bytes_read_dword, |
- TRUE)) { |
+ !GetOverlappedResult( |
+ handle.handle, &overlapped, &bytes_read_dword, TRUE)) { |
return false; |
} |
} |
@@ -63,15 +69,18 @@ |
OVERLAPPED overlapped = {0}; |
DWORD bytes_read_dword = 0; |
- if (!ReadFile(handle.handle, buffer, static_cast<DWORD>(buffer_size), |
- &bytes_read_dword, &overlapped)) { |
+ if (!ReadFile(handle.handle, |
+ buffer, |
+ static_cast<DWORD>(buffer_size), |
+ &bytes_read_dword, |
+ &overlapped)) { |
if (GetLastError() != ERROR_IO_PENDING) |
return false; |
CancelIo(handle.handle); |
- if (!GetOverlappedResult(handle.handle, &overlapped, &bytes_read_dword, |
- TRUE)) { |
+ if (!GetOverlappedResult( |
+ handle.handle, &overlapped, &bytes_read_dword, TRUE)) { |
*bytes_read = 0; |
return true; |
} |
@@ -88,7 +97,11 @@ |
PCHECK(DuplicateHandle( |
GetCurrentProcess(), |
reinterpret_cast<HANDLE>(_get_osfhandle(_fileno(fp.get()))), |
- GetCurrentProcess(), &rv, 0, TRUE, DUPLICATE_SAME_ACCESS)) |
+ GetCurrentProcess(), |
+ &rv, |
+ 0, |
+ TRUE, |
+ DUPLICATE_SAME_ACCESS)) |
<< "DuplicateHandle"; |
return embedder::ScopedPlatformHandle(embedder::PlatformHandle(rv)); |
} |