OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:kOneMB
(Results
1 - 2
of
2
) sorted by null
/external/chromium/base/test/
test_file_util_win.cc
20
static const ptrdiff_t
kOneMB
= 1024 * 1024;
57
kOneMB
,
61
// If the file size isn't a multiple of
kOneMB
, we'll need special
68
::ReadFile(file_handle, buffer,
kOneMB
, &bytes_read, NULL);
72
if (bytes_read <
kOneMB
) {
77
ZeroMemory(buffer + bytes_read,
kOneMB
- bytes_read);
84
DCHECK((total_bytes %
kOneMB
) == 0);
86
if (!::WriteFile(file_handle, buffer,
kOneMB
, &bytes_written, NULL) ||
87
bytes_written !=
kOneMB
) {