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

Unified Diff: components/offline_pages/offline_page_model_impl_unittest.cc

Issue 2208293002: [Offline Pages] Add new download namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update according to review comments 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/offline_page_model_impl_unittest.cc
diff --git a/components/offline_pages/offline_page_model_impl_unittest.cc b/components/offline_pages/offline_page_model_impl_unittest.cc
index 040815a8363854cbfc2a301d0f204b67201db7df..949020930df063e3ad7dd27a4c086b65dc96cc42 100644
--- a/components/offline_pages/offline_page_model_impl_unittest.cc
+++ b/components/offline_pages/offline_page_model_impl_unittest.cc
@@ -1068,6 +1068,15 @@ TEST_F(OfflinePageModelImplTest, CustomTabsNamespace) {
static_cast<int>(SavePageResult::SUCCESS), 1);
}
+TEST_F(OfflinePageModelImplTest, DownloadNamespace) {
+ SavePage(kTestUrl, ClientId(kDownloadNamespace, "123"));
+ std::string histogram_name = "OfflinePages.SavePageResult.";
+ histogram_name += kDownloadNamespace;
+
+ histograms().ExpectUniqueSample(histogram_name,
+ static_cast<int>(SavePageResult::SUCCESS), 1);
+}
+
TEST(CommandLineFlagsTest, OfflineBookmarks) {
// Disabled by default.
EXPECT_FALSE(offline_pages::IsOfflineBookmarksEnabled());
« no previous file with comments | « components/offline_pages/client_policy_controller_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698