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

Unified Diff: sql/recovery_unittest.cc

Issue 109043002: Move more file_util functions to base namespace. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sql/connection_unittest.cc ('k') | sql/test/test_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/recovery_unittest.cc
diff --git a/sql/recovery_unittest.cc b/sql/recovery_unittest.cc
index e9e77cf81f529afafa6068acb15aa043ad4cc665..e3c9738fbfefa24c1677a17a6fbd332bf3c1469e 100644
--- a/sql/recovery_unittest.cc
+++ b/sql/recovery_unittest.cc
@@ -77,7 +77,7 @@ int GetRootPage(sql::Connection* db, const char* name) {
// per SQLite usage.
bool ReadPage(const base::FilePath& path, size_t page_no,
char* buf, size_t page_size) {
- file_util::ScopedFILE file(file_util::OpenFile(path, "rb"));
+ file_util::ScopedFILE file(base::OpenFile(path, "rb"));
if (!file.get())
return false;
if (0 != fseek(file.get(), (page_no - 1) * page_size, SEEK_SET))
@@ -91,7 +91,7 @@ bool ReadPage(const base::FilePath& path, size_t page_no,
// per SQLite usage.
bool WritePage(const base::FilePath& path, size_t page_no,
const char* buf, size_t page_size) {
- file_util::ScopedFILE file(file_util::OpenFile(path, "rb+"));
+ file_util::ScopedFILE file(base::OpenFile(path, "rb+"));
if (!file.get())
return false;
if (0 != fseek(file.get(), (page_no - 1) * page_size, SEEK_SET))
« no previous file with comments | « sql/connection_unittest.cc ('k') | sql/test/test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698