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

Unified Diff: chrome/browser/importer/firefox_profile_lock_unittest.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « chrome/browser/importer/firefox_importer_utils_win.cc ('k') | chrome/browser/importer/safari_importer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/firefox_profile_lock_unittest.cc
diff --git a/chrome/browser/importer/firefox_profile_lock_unittest.cc b/chrome/browser/importer/firefox_profile_lock_unittest.cc
index 7506a710c1d8e6d57ea804b500cb313b658ef858..95a4b4b0cbaa4500363325f9706e61a419a91b2d 100644
--- a/chrome/browser/importer/firefox_profile_lock_unittest.cc
+++ b/chrome/browser/importer/firefox_profile_lock_unittest.cc
@@ -39,27 +39,27 @@ TEST_F(FirefoxProfileLockTest, ProfileLock) {
scoped_ptr<FirefoxProfileLock> lock;
EXPECT_EQ(static_cast<FirefoxProfileLock*>(NULL), lock.get());
- EXPECT_FALSE(file_util::PathExists(lock_file_path));
+ EXPECT_FALSE(base::PathExists(lock_file_path));
lock.reset(new FirefoxProfileLock(test_path));
EXPECT_TRUE(lock->HasAcquired());
- EXPECT_TRUE(file_util::PathExists(lock_file_path));
+ EXPECT_TRUE(base::PathExists(lock_file_path));
lock->Unlock();
EXPECT_FALSE(lock->HasAcquired());
// In the posix code, we don't delete the file when releasing the lock.
#if !defined(OS_POSIX)
- EXPECT_FALSE(file_util::PathExists(lock_file_path));
+ EXPECT_FALSE(base::PathExists(lock_file_path));
#endif // !defined(OS_POSIX)
lock->Lock();
EXPECT_TRUE(lock->HasAcquired());
- EXPECT_TRUE(file_util::PathExists(lock_file_path));
+ EXPECT_TRUE(base::PathExists(lock_file_path));
lock->Lock();
EXPECT_TRUE(lock->HasAcquired());
lock->Unlock();
EXPECT_FALSE(lock->HasAcquired());
// In the posix code, we don't delete the file when releasing the lock.
#if !defined(OS_POSIX)
- EXPECT_FALSE(file_util::PathExists(lock_file_path));
+ EXPECT_FALSE(base::PathExists(lock_file_path));
#endif // !defined(OS_POSIX)
}
@@ -74,7 +74,7 @@ TEST_F(FirefoxProfileLockTest, ProfileLockOrphaned) {
FILE* lock_file = file_util::OpenFile(lock_file_path, "w");
ASSERT_TRUE(lock_file);
file_util::CloseFile(lock_file);
- EXPECT_TRUE(file_util::PathExists(lock_file_path));
+ EXPECT_TRUE(base::PathExists(lock_file_path));
scoped_ptr<FirefoxProfileLock> lock;
EXPECT_EQ(static_cast<FirefoxProfileLock*>(NULL), lock.get());
« no previous file with comments | « chrome/browser/importer/firefox_importer_utils_win.cc ('k') | chrome/browser/importer/safari_importer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698