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

Unified Diff: components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc

Issue 2811813002: [Offline Pages] Set up the initial prefetching service. (Closed)
Patch Set: fix compile >:-( Created 3 years, 8 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
« no previous file with comments | « components/offline_pages/core/prefetch/prefetch_service_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc
diff --git a/components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc b/components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f2a782dc80bef32dc23fc61c138d5c0034c1788b
--- /dev/null
+++ b/components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/offline_pages/core/prefetch/prefetch_service_impl.h"
+
+#include "components/offline_pages/core/client_namespace_constants.h"
+#include "testing/gtest/include/gtest/gtest.h"
+#include "url/gurl.h"
+
+namespace offline_pages {
+
+TEST(PrefetchServiceTest, ServiceDoesNotCrash) {
+ PrefetchServiceImpl service;
+
+ service.AddCandidatePrefetchURLs(std::vector<PrefetchService::PrefetchURL>());
+ service.RemoveAllUnprocessedPrefetchURLs(kSuggestedArticlesNamespace);
+ service.RemovePrefetchURLsByClientId({kSuggestedArticlesNamespace, "123"});
+}
+
+} // namespace offline_pages
« no previous file with comments | « components/offline_pages/core/prefetch/prefetch_service_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698