diff options
Diffstat (limited to 'chromium/components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc')
-rw-r--r-- | chromium/components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium/components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc b/chromium/components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc new file mode 100644 index 00000000000..5dfee742961 --- /dev/null +++ b/chromium/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(nullptr); + + service.AddCandidatePrefetchURLs(std::vector<PrefetchService::PrefetchURL>()); + service.RemoveAllUnprocessedPrefetchURLs(kSuggestedArticlesNamespace); + service.RemovePrefetchURLsByClientId({kSuggestedArticlesNamespace, "123"}); +} + +} // namespace offline_pages |