OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ios/chrome/browser/reading_list/url_downloader.h" | 5 #include "ios/chrome/browser/reading_list/url_downloader.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #import "base/mac/bind_objc_block.h" | 10 #import "base/mac/bind_objc_block.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #import "base/test/ios/wait_util.h" | 13 #import "base/test/ios/wait_util.h" |
14 #include "components/reading_list/ios/offline_url_utils.h" | 14 #include "components/reading_list/core/offline_url_utils.h" |
15 #include "ios/chrome/browser/chrome_paths.h" | 15 #include "ios/chrome/browser/chrome_paths.h" |
16 #include "ios/chrome/browser/dom_distiller/distiller_viewer.h" | 16 #include "ios/chrome/browser/dom_distiller/distiller_viewer.h" |
17 #include "ios/chrome/browser/reading_list/offline_url_utils.h" | 17 #include "ios/chrome/browser/reading_list/offline_url_utils.h" |
18 #include "ios/chrome/browser/reading_list/reading_list_distiller_page.h" | 18 #include "ios/chrome/browser/reading_list/reading_list_distiller_page.h" |
19 #include "ios/web/public/test/test_web_thread_bundle.h" | 19 #include "ios/web/public/test/test_web_thread_bundle.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class DistillerViewerTest : public dom_distiller::DistillerViewerInterface { | 24 class DistillerViewerTest : public dom_distiller::DistillerViewerInterface { |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 ASSERT_TRUE(std::find(downloader_->downloaded_files_.begin(), | 261 ASSERT_TRUE(std::find(downloader_->downloaded_files_.begin(), |
262 downloader_->downloaded_files_.end(), | 262 downloader_->downloaded_files_.end(), |
263 url) != downloader_->downloaded_files_.end()); | 263 url) != downloader_->downloaded_files_.end()); |
264 ASSERT_TRUE(std::find(downloader_->removed_files_.begin(), | 264 ASSERT_TRUE(std::find(downloader_->removed_files_.begin(), |
265 downloader_->removed_files_.end(), | 265 downloader_->removed_files_.end(), |
266 url) != downloader_->removed_files_.end()); | 266 url) != downloader_->removed_files_.end()); |
267 ASSERT_TRUE(downloader_->CheckExistenceOfOfflineURLPagePath(url)); | 267 ASSERT_TRUE(downloader_->CheckExistenceOfOfflineURLPagePath(url)); |
268 } | 268 } |
269 | 269 |
270 } // namespace | 270 } // namespace |
OLD | NEW |