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

Unified Diff: components/ntp_snippets/ntp_snippets_service_unittest.cc

Issue 2191343002: 📰 Remove SnippetService's dependency on Sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update some doc, show NO_SNIPPETS instead of SIGNIN when during INITIALIZING state Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/ntp_snippets/ntp_snippets_service_unittest.cc
diff --git a/components/ntp_snippets/ntp_snippets_service_unittest.cc b/components/ntp_snippets/ntp_snippets_service_unittest.cc
index 9d56af38b90dc1b5d961c3ee86a7914847bb83a3..b5d01dc79c60c3629f2f7d77e536b11215300b3d 100644
--- a/components/ntp_snippets/ntp_snippets_service_unittest.cc
+++ b/components/ntp_snippets/ntp_snippets_service_unittest.cc
@@ -329,8 +329,8 @@ class NTPSnippetsServiceTest : public test::NTPSnippetsTestBase {
std::move(snippets_fetcher), /*image_fetcher=*/nullptr,
/*image_fetcher=*/nullptr, base::MakeUnique<NTPSnippetsDatabase>(
database_dir_.path(), task_runner),
- base::MakeUnique<NTPSnippetsStatusService>(
- fake_signin_manager(), mock_sync_service(), pref_service())));
+ base::MakeUnique<NTPSnippetsStatusService>(fake_signin_manager(),
+ pref_service())));
if (enabled)
WaitForDBLoad(service_.get());
@@ -867,7 +867,7 @@ TEST_F(NTPSnippetsServiceTest, DismissShouldRespectAllKnownUrls) {
ASSERT_THAT(service()->snippets(), IsEmpty());
}
-TEST_F(NTPSnippetsServiceTest, HistorySyncStateChanges) {
+TEST_F(NTPSnippetsServiceTest, StatusChanges) {
MockServiceObserver mock_observer;
service()->AddObserver(&mock_observer);
« no previous file with comments | « components/ntp_snippets/ntp_snippets_service.cc ('k') | components/ntp_snippets/ntp_snippets_status_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698