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

Side by Side Diff: ios/chrome/browser/ui/reading_list/reading_list_coordinator_unittest.mm

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: feedback Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #import "ios/chrome/browser/ui/reading_list/reading_list_coordinator.h" 5 #import "ios/chrome/browser/ui/reading_list/reading_list_coordinator.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "base/time/default_clock.h" 10 #include "base/time/default_clock.h"
11 #include "components/favicon/core/large_icon_service.h" 11 #include "components/favicon/core/large_icon_service.h"
12 #include "components/favicon/core/test/mock_favicon_service.h" 12 #include "components/favicon/core/test/mock_favicon_service.h"
13 #include "components/reading_list/ios/reading_list_entry.h" 13 #include "components/reading_list/core/reading_list_entry.h"
14 #include "components/reading_list/ios/reading_list_model_impl.h" 14 #include "components/reading_list/core/reading_list_model_impl.h"
15 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" 15 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
16 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h" 16 #import "ios/chrome/browser/ui/collection_view/collection_view_model.h"
17 #import "ios/chrome/browser/ui/reading_list/reading_list_collection_view_control ler.h" 17 #import "ios/chrome/browser/ui/reading_list/reading_list_collection_view_control ler.h"
18 #import "ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.h" 18 #import "ios/chrome/browser/ui/reading_list/reading_list_collection_view_item.h"
19 #import "ios/chrome/browser/ui/url_loader.h" 19 #import "ios/chrome/browser/ui/url_loader.h"
20 #include "ios/web/public/referrer.h" 20 #include "ios/web/public/referrer.h"
21 #import "ios/web/public/test/web_test_with_web_state.h" 21 #import "ios/web/public/test/web_test_with_web_state.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #import "third_party/ocmock/OCMock/OCMock.h" 23 #import "third_party/ocmock/OCMock/OCMock.h"
24 #import "third_party/ocmock/gtest_support.h" 24 #import "third_party/ocmock/gtest_support.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 GetAReadingListCollectionViewController() 157 GetAReadingListCollectionViewController()
158 openItem:item]; 158 openItem:item];
159 159
160 // Tests. 160 // Tests.
161 UrlLoaderStub* loader = GetLoaderStub(); 161 UrlLoaderStub* loader = GetLoaderStub();
162 EXPECT_EQ(url, loader.url); 162 EXPECT_EQ(url, loader.url);
163 EXPECT_TRUE(ui::PageTransitionCoreTypeIs(ui::PAGE_TRANSITION_AUTO_BOOKMARK, 163 EXPECT_TRUE(ui::PageTransitionCoreTypeIs(ui::PAGE_TRANSITION_AUTO_BOOKMARK,
164 loader.transition)); 164 loader.transition));
165 EXPECT_EQ(NO, loader.rendererInitiated); 165 EXPECT_EQ(NO, loader.rendererInitiated);
166 } 166 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698