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

Unified Diff: sql/test/test_helpers.cc

Issue 196073002: Move ScopedFILE to base namespace and scoped_file.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « sql/connection_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/test/test_helpers.cc
diff --git a/sql/test/test_helpers.cc b/sql/test/test_helpers.cc
index fb055cff706d1a972445eb0de984fa3ec13dd80c..2952821c2a60146bee1b18a27a433390b047e826 100644
--- a/sql/test/test_helpers.cc
+++ b/sql/test/test_helpers.cc
@@ -7,6 +7,7 @@
#include <string>
#include "base/file_util.h"
+#include "base/files/scoped_file.h"
#include "sql/connection.h"
#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -75,7 +76,7 @@ bool CorruptSizeInHeader(const base::FilePath& db_path) {
unsigned char header[kHeaderSize];
- file_util::ScopedFILE file(base::OpenFile(db_path, "rb+"));
+ base::ScopedFILE file(base::OpenFile(db_path, "rb+"));
if (!file.get())
return false;
@@ -128,7 +129,7 @@ bool CorruptTableOrIndex(const base::FilePath& db_path,
scoped_ptr<char[]> page_buf(new char[page_size]);
// Get the page into page_buf.
- file_util::ScopedFILE file(base::OpenFile(db_path, "rb+"));
+ base::ScopedFILE file(base::OpenFile(db_path, "rb+"));
if (!file.get())
return false;
if (0 != fseek(file.get(), page_ofs, SEEK_SET))
« no previous file with comments | « sql/connection_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698