Chromium Code Reviews| 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..af4236701a208aa5f11e0be0bae534011b89ceb2 |
| --- /dev/null |
| +++ b/components/offline_pages/core/prefetch/prefetch_service_impl_unittest.cc |
| @@ -0,0 +1,19 @@ |
| +// 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 "testing/gtest/include/gtest/gtest.h" |
| +#include "url/gurl.h" |
| + |
| +namespace offline_pages { |
| + |
| +TEST(PrefetchServiceTest, ServiceDoesNotCrash) { |
| + PrefetchServiceImpl service; |
| + |
| + service.OnNewURLSuggestions(std::vector<GURL>()); |
| + service.RemoveAllUnprocessedURLSuggestions(); |
|
carlosk
2017/04/11 17:31:36
Question: how come debug build tests don't crash h
dewittj
2017/04/11 21:25:49
NOTIMPLEMENTED does not crash, it just logs. NOTR
|
| +} |
| + |
| +} // namespace offline_pages |