| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/files/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
| 7 #include "base/platform_file.h" | 7 #include "base/platform_file.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 file, buffer, first_chunk_size)); | 425 file, buffer, first_chunk_size)); |
| 426 EXPECT_EQ(kDataSize - first_chunk_size, | 426 EXPECT_EQ(kDataSize - first_chunk_size, |
| 427 base::ReadPlatformFileAtCurrentPos( | 427 base::ReadPlatformFileAtCurrentPos( |
| 428 file, buffer + first_chunk_size, | 428 file, buffer + first_chunk_size, |
| 429 kDataSize - first_chunk_size)); | 429 kDataSize - first_chunk_size)); |
| 430 EXPECT_EQ(std::string(buffer, buffer + kDataSize), | 430 EXPECT_EQ(std::string(buffer, buffer + kDataSize), |
| 431 std::string(kData)); | 431 std::string(kData)); |
| 432 | 432 |
| 433 base::ClosePlatformFile(file); | 433 base::ClosePlatformFile(file); |
| 434 } | 434 } |
| OLD | NEW |