OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/notifications/NotificationResourcesLoader.h" | 5 #include "modules/notifications/NotificationResourcesLoader.h" |
6 | 6 |
7 #include "core/fetch/MemoryCache.h" | |
8 #include "core/testing/DummyPageHolder.h" | 7 #include "core/testing/DummyPageHolder.h" |
9 #include "platform/heap/Heap.h" | 8 #include "platform/heap/Heap.h" |
| 9 #include "platform/loader/fetch/MemoryCache.h" |
10 #include "platform/testing/URLTestHelpers.h" | 10 #include "platform/testing/URLTestHelpers.h" |
11 #include "platform/weborigin/KURL.h" | 11 #include "platform/weborigin/KURL.h" |
12 #include "public/platform/Platform.h" | 12 #include "public/platform/Platform.h" |
13 #include "public/platform/WebURL.h" | 13 #include "public/platform/WebURL.h" |
14 #include "public/platform/WebURLLoaderMockFactory.h" | 14 #include "public/platform/WebURLLoaderMockFactory.h" |
15 #include "public/platform/WebURLResponse.h" | 15 #include "public/platform/WebURLResponse.h" |
16 #include "public/platform/modules/notifications/WebNotificationConstants.h" | 16 #include "public/platform/modules/notifications/WebNotificationConstants.h" |
17 #include "public/platform/modules/notifications/WebNotificationData.h" | 17 #include "public/platform/modules/notifications/WebNotificationData.h" |
18 #include "public/platform/modules/notifications/WebNotificationResources.h" | 18 #include "public/platform/modules/notifications/WebNotificationResources.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests(); | 266 Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests(); |
267 | 267 |
268 // Loading should have been cancelled when |stop| was called so no resources | 268 // Loading should have been cancelled when |stop| was called so no resources |
269 // should have been received by the test even though | 269 // should have been received by the test even though |
270 // |serveAsynchronousRequests| was called. | 270 // |serveAsynchronousRequests| was called. |
271 ASSERT_FALSE(resources()); | 271 ASSERT_FALSE(resources()); |
272 } | 272 } |
273 | 273 |
274 } // namespace | 274 } // namespace |
275 } // namespace blink | 275 } // namespace blink |
OLD | NEW |