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

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

Issue 2317003002: //chrome/browser and //components F-L: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 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
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 b3a598585f8e4a8500d108ce0ebe06541896a808..41989f3398cbec79c759f8a475dc61aa0784c09b 100644
--- a/chrome/browser/importer/firefox_profile_lock_unittest.cc
+++ b/chrome/browser/importer/firefox_profile_lock_unittest.cc
@@ -21,7 +21,7 @@ class FirefoxProfileLockTest : public testing::Test {
};
TEST_F(FirefoxProfileLockTest, LockTest) {
- FirefoxProfileLock lock1(temp_dir_.path());
+ FirefoxProfileLock lock1(temp_dir_.GetPath());
ASSERT_TRUE(lock1.HasAcquired());
lock1.Unlock();
ASSERT_FALSE(lock1.HasAcquired());
@@ -32,7 +32,7 @@ TEST_F(FirefoxProfileLockTest, LockTest) {
// Tests basic functionality and verifies that the lock file is deleted after
// use.
TEST_F(FirefoxProfileLockTest, ProfileLock) {
- base::FilePath test_path = temp_dir_.path();
+ base::FilePath test_path = temp_dir_.GetPath();
base::FilePath lock_file_path =
test_path.Append(FirefoxProfileLock::kLockFileName);
@@ -65,7 +65,7 @@ TEST_F(FirefoxProfileLockTest, ProfileLock) {
// If for some reason the lock file is left behind by the previous owner, we
// should still be able to lock it, at least in the Windows implementation.
TEST_F(FirefoxProfileLockTest, ProfileLockOrphaned) {
- base::FilePath test_path = temp_dir_.path();
+ base::FilePath test_path = temp_dir_.GetPath();
base::FilePath lock_file_path =
test_path.Append(FirefoxProfileLock::kLockFileName);
@@ -88,7 +88,7 @@ TEST_F(FirefoxProfileLockTest, ProfileLockOrphaned) {
#if !defined(OS_POSIX)
// Tests two locks contending for the same lock file.
TEST_F(FirefoxProfileLockTest, ProfileLockContention) {
- base::FilePath test_path = temp_dir_.path();
+ base::FilePath test_path = temp_dir_.GetPath();
std::unique_ptr<FirefoxProfileLock> lock1;
EXPECT_EQ(static_cast<FirefoxProfileLock*>(NULL), lock1.get());
« no previous file with comments | « chrome/browser/importer/firefox_importer_browsertest.cc ('k') | chrome/browser/importer/ie_importer_browsertest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698