Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: base/files/file_unittest.cc

Issue 93413002: Base: Copy platform_file.* to files/file.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/files/file_posix.cc ('k') | base/files/file_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « base/files/file_posix.cc ('k') | base/files/file_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698