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

Unified Diff: third_party/leveldatabase/env_chromium_unittest.cc

Issue 168833003: Remove uses of PlatformFile from leveldb (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « third_party/leveldatabase/env_chromium_stdio.cc ('k') | third_party/leveldatabase/env_chromium_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/leveldatabase/env_chromium_unittest.cc
diff --git a/third_party/leveldatabase/env_chromium_unittest.cc b/third_party/leveldatabase/env_chromium_unittest.cc
index d15a44524aa0de9c42a3530ce1e5d37f1e083d01..66e498b0ba748949dbc55f059c21fe2ad6f50374 100644
--- a/third_party/leveldatabase/env_chromium_unittest.cc
+++ b/third_party/leveldatabase/env_chromium_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/file_util.h"
+#include "base/files/file.h"
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
@@ -31,17 +32,16 @@ TEST(ErrorEncoding, OnlyAMethod) {
EXPECT_EQ(-75, error);
}
-TEST(ErrorEncoding, PlatformFileError) {
+TEST(ErrorEncoding, FileError) {
const MethodID in_method = kWritableFileClose;
- const base::PlatformFileError pfe =
- base::PLATFORM_FILE_ERROR_INVALID_OPERATION;
- const Status s = MakeIOError("Somefile.txt", "message", in_method, pfe);
+ const base::File::Error fe = base::File::FILE_ERROR_INVALID_OPERATION;
+ const Status s = MakeIOError("Somefile.txt", "message", in_method, fe);
MethodID method;
int error;
EXPECT_EQ(METHOD_AND_PFE,
ParseMethodAndError(s.ToString().c_str(), &method, &error));
EXPECT_EQ(in_method, method);
- EXPECT_EQ(pfe, error);
+ EXPECT_EQ(fe, error);
}
TEST(ErrorEncoding, Errno) {
« no previous file with comments | « third_party/leveldatabase/env_chromium_stdio.cc ('k') | third_party/leveldatabase/env_chromium_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698