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

Unified Diff: ios/chrome/browser/reading_list/url_downloader_unittest.cc

Issue 2506993002: Create offline_url_utils (Closed)
Patch Set: feedback Created 4 years, 1 month 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 | « ios/chrome/browser/reading_list/url_downloader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/reading_list/url_downloader_unittest.cc
diff --git a/ios/chrome/browser/reading_list/url_downloader_unittest.cc b/ios/chrome/browser/reading_list/url_downloader_unittest.cc
index e5df3edc50d6fce3d3b3a99204fb668ce027bb2e..aec9ca146e59b73cfdb761de7c0119ba96edc01b 100644
--- a/ios/chrome/browser/reading_list/url_downloader_unittest.cc
+++ b/ios/chrome/browser/reading_list/url_downloader_unittest.cc
@@ -13,6 +13,7 @@
#import "base/test/ios/wait_util.h"
#include "ios/chrome/browser/chrome_paths.h"
#include "ios/chrome/browser/dom_distiller/distiller_viewer.h"
+#include "ios/chrome/browser/reading_list/offline_url_utils.h"
#include "ios/web/public/test/test_web_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -47,7 +48,8 @@ class MockURLDownloader : public URLDownloader {
base::Unretained(this))) {}
void RemoveOfflineFilesDirectory() {
- base::DeleteFile(OfflineRootDirectoryPath(), true);
+ base::DeleteFile(reading_list::OfflineRootDirectoryPath(base_directory_),
+ true);
}
void ClearCompletionTrackers() {
@@ -56,7 +58,8 @@ class MockURLDownloader : public URLDownloader {
}
bool CheckExistenceOfOfflineURLPagePath(const GURL& url) {
- return base::PathExists(OfflinePageAbsolutePath(url));
+ return base::PathExists(
+ reading_list::OfflinePageAbsolutePath(base_directory_, url));
}
void FakeWorking() { working_ = true; }
« no previous file with comments | « ios/chrome/browser/reading_list/url_downloader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698