Index: chrome/browser/download/download_path_reservation_tracker_unittest.cc |
diff --git a/chrome/browser/download/download_path_reservation_tracker_unittest.cc b/chrome/browser/download/download_path_reservation_tracker_unittest.cc |
index 0abe7149546adb8f3e67016e5e238843243a1c85..199bf812405098f4015149b010872781b5deae6e 100644 |
--- a/chrome/browser/download/download_path_reservation_tracker_unittest.cc |
+++ b/chrome/browser/download/download_path_reservation_tracker_unittest.cc |
@@ -61,8 +61,6 @@ class FakeDownloadItem : public MockDownloadItem { |
ObserverList<Observer> observers_; |
}; |
-} // namespace |
- |
class DownloadPathReservationTrackerTest : public testing::Test { |
public: |
DownloadPathReservationTrackerTest(); |
@@ -129,7 +127,7 @@ FilePath DownloadPathReservationTrackerTest::GetPathInDownloadsDirectory( |
} |
bool DownloadPathReservationTrackerTest::IsPathInUse(const FilePath& path) { |
- return DownloadPathReservationTracker::GetInstance()->IsPathInUse(path); |
+ return DownloadPathReservationTracker::IsPathInUseForTesting(path); |
} |
void DownloadPathReservationTrackerTest::CallGetReservedPath( |
@@ -160,6 +158,8 @@ void DownloadPathReservationTrackerTest::TestReservedPathCallback( |
*return_verified = verified; |
} |
+} // namespace |
+ |
// A basic reservation is acquired and committed. |
TEST_F(DownloadPathReservationTrackerTest, BasicReservation) { |
scoped_ptr<FakeDownloadItem> item(CreateDownloadItem(1)); |