summaryrefslogtreecommitdiffstats
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/connection_unittest.cc8
-rw-r--r--sql/test/test_helpers.cc2
2 files changed, 5 insertions, 5 deletions
diff --git a/sql/connection_unittest.cc b/sql/connection_unittest.cc
index 5aa7a9b..c6811b4 100644
--- a/sql/connection_unittest.cc
+++ b/sql/connection_unittest.cc
@@ -423,10 +423,10 @@ TEST_F(SQLConnectionTest, RazeEmptyDB) {
db().Close();
{
- file_util::ScopedFILE file(base::OpenFile(db_path(), "rb+"));
+ file_util::ScopedFILE file(file_util::OpenFile(db_path(), "rb+"));
ASSERT_TRUE(file.get() != NULL);
ASSERT_EQ(0, fseek(file.get(), 0, SEEK_SET));
- ASSERT_TRUE(base::TruncateFile(file.get()));
+ ASSERT_TRUE(file_util::TruncateFile(file.get()));
}
ASSERT_TRUE(db().Open(db_path()));
@@ -441,7 +441,7 @@ TEST_F(SQLConnectionTest, RazeNOTADB) {
ASSERT_FALSE(base::PathExists(db_path()));
{
- file_util::ScopedFILE file(base::OpenFile(db_path(), "wb"));
+ file_util::ScopedFILE file(file_util::OpenFile(db_path(), "wb"));
ASSERT_TRUE(file.get() != NULL);
const char* kJunk = "This is the hour of our discontent.";
@@ -474,7 +474,7 @@ TEST_F(SQLConnectionTest, RazeNOTADB2) {
db().Close();
{
- file_util::ScopedFILE file(base::OpenFile(db_path(), "rb+"));
+ file_util::ScopedFILE file(file_util::OpenFile(db_path(), "rb+"));
ASSERT_TRUE(file.get() != NULL);
ASSERT_EQ(0, fseek(file.get(), 0, SEEK_SET));
diff --git a/sql/test/test_helpers.cc b/sql/test/test_helpers.cc
index 8d56140..8d13d01 100644
--- a/sql/test/test_helpers.cc
+++ b/sql/test/test_helpers.cc
@@ -75,7 +75,7 @@ bool CorruptSizeInHeader(const base::FilePath& db_path) {
unsigned char header[kHeaderSize];
- file_util::ScopedFILE file(base::OpenFile(db_path, "rb+"));
+ file_util::ScopedFILE file(file_util::OpenFile(db_path, "rb+"));
if (!file.get())
return false;