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

Unified Diff: components/offline_pages/client_policy_controller_unittest.cc

Issue 2224193002: [Offline pages] Add ntp suggestions as a new namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad merge Created 4 years, 4 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/offline_pages/client_policy_controller_unittest.cc
diff --git a/components/offline_pages/client_policy_controller_unittest.cc b/components/offline_pages/client_policy_controller_unittest.cc
index 735d7a3832cf6ebfbd68e9c974c5d6444285f180..392b1984b84feb1c8f27deabee6ac318c31a369a 100644
--- a/components/offline_pages/client_policy_controller_unittest.cc
+++ b/components/offline_pages/client_policy_controller_unittest.cc
@@ -77,4 +77,11 @@ TEST_F(ClientPolicyControllerTest, CheckDownloadDefined) {
EXPECT_FALSE(isTemporary(policy));
}
+TEST_F(ClientPolicyControllerTest, CheckNTPSuggestionsDefined) {
+ OfflinePageClientPolicy policy =
+ controller()->GetPolicy(kNTPSuggestionsNamespace);
+ EXPECT_EQ(policy.name_space, kNTPSuggestionsNamespace);
+ EXPECT_FALSE(isTemporary(policy));
+}
+
} // namespace offline_pages
« no previous file with comments | « components/offline_pages/client_policy_controller.cc ('k') | components/offline_pages/offline_page_model_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698