| 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..7b7ef126e33b8a376337aedb4e3d4fd6f1579f5f
|
| --- /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.OnNewURLsToPrefetch(std::vector<PrefetchService::PrefetchURL>());
|
| + service.RemoveAllUnprocessedPrefetchURLs(kSuggestedArticlesNamespace);
|
| + service.RemovePrefetchURLsByClientId({kSuggestedArticlesNamespace, "123"});
|
| +}
|
| +
|
| +} // namespace offline_pages
|
|
|