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

Unified Diff: base/files/file_util_proxy_unittest.cc

Issue 227433006: Remove CreatePlatformFile from file_util_proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/files/file_util_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_util_proxy_unittest.cc
diff --git a/base/files/file_util_proxy_unittest.cc b/base/files/file_util_proxy_unittest.cc
index 8d8c8eb2708e287f963894902604bf306af2495f..4fa68902a80ef297edaa09a92621d80b398aabcb 100644
--- a/base/files/file_util_proxy_unittest.cc
+++ b/base/files/file_util_proxy_unittest.cc
@@ -88,11 +88,10 @@ class FileUtilProxyTest : public testing::Test {
PlatformFile GetTestPlatformFile(int flags) {
if (file_ != kInvalidPlatformFileValue)
return file_;
- bool created;
- PlatformFileError error;
- file_ = CreatePlatformFile(test_path(), flags, &created, &error);
- EXPECT_EQ(PLATFORM_FILE_OK, error);
- EXPECT_NE(kInvalidPlatformFileValue, file_);
+
+ File file(test_path(), flags);
+ EXPECT_TRUE(file.IsValid());
+ file_ = file.TakePlatformFile();
return file_;
}
« no previous file with comments | « base/files/file_util_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698