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

Side by Side Diff: ios/chrome/browser/reading_list/url_downloader_unittest.cc

Issue 2514333003: Componentize Reading List (Closed)
Patch Set: rebase Created 4 years 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 unified diff | Download patch
OLDNEW
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/offline_url_utils.h"
14 #include "ios/chrome/browser/chrome_paths.h" 15 #include "ios/chrome/browser/chrome_paths.h"
15 #include "ios/chrome/browser/dom_distiller/distiller_viewer.h" 16 #include "ios/chrome/browser/dom_distiller/distiller_viewer.h"
16 #include "ios/chrome/browser/reading_list/offline_url_utils.h" 17 #include "ios/chrome/browser/reading_list/offline_url_utils.h"
17 #include "ios/web/public/test/test_web_thread_bundle.h" 18 #include "ios/web/public/test/test_web_thread_bundle.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 20
20 namespace { 21 namespace {
21 22
22 class DistillerViewerTest : public dom_distiller::DistillerViewerInterface { 23 class DistillerViewerTest : public dom_distiller::DistillerViewerInterface {
23 public: 24 public:
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 ASSERT_TRUE(std::find(downloader_->downloaded_files_.begin(), 183 ASSERT_TRUE(std::find(downloader_->downloaded_files_.begin(),
183 downloader_->downloaded_files_.end(), 184 downloader_->downloaded_files_.end(),
184 url) != downloader_->downloaded_files_.end()); 185 url) != downloader_->downloaded_files_.end());
185 ASSERT_TRUE(std::find(downloader_->removed_files_.begin(), 186 ASSERT_TRUE(std::find(downloader_->removed_files_.begin(),
186 downloader_->removed_files_.end(), 187 downloader_->removed_files_.end(),
187 url) != downloader_->removed_files_.end()); 188 url) != downloader_->removed_files_.end());
188 ASSERT_TRUE(downloader_->CheckExistenceOfOfflineURLPagePath(url)); 189 ASSERT_TRUE(downloader_->CheckExistenceOfOfflineURLPagePath(url));
189 } 190 }
190 191
191 } // namespace 192 } // namespace
OLDNEW
« no previous file with comments | « ios/chrome/browser/reading_list/url_downloader.cc ('k') | ios/chrome/browser/share_extension/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698