OLD | NEW |
1 // Copyright 2016 Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/NotificationImageLoader.h" | 5 #include "modules/notifications/NotificationImageLoader.h" |
6 | 6 |
7 #include "core/dom/ExecutionContext.h" | 7 #include "core/dom/ExecutionContext.h" |
8 #include "core/fetch/MemoryCache.h" | |
9 #include "core/testing/DummyPageHolder.h" | 8 #include "core/testing/DummyPageHolder.h" |
| 9 #include "platform/loader/fetch/MemoryCache.h" |
10 #include "platform/testing/HistogramTester.h" | 10 #include "platform/testing/HistogramTester.h" |
11 #include "platform/testing/TestingPlatformSupport.h" | 11 #include "platform/testing/TestingPlatformSupport.h" |
12 #include "platform/testing/URLTestHelpers.h" | 12 #include "platform/testing/URLTestHelpers.h" |
13 #include "public/platform/Platform.h" | 13 #include "public/platform/Platform.h" |
14 #include "public/platform/WebURL.h" | 14 #include "public/platform/WebURL.h" |
15 #include "public/platform/WebURLLoaderMockFactory.h" | 15 #include "public/platform/WebURLLoaderMockFactory.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "third_party/WebKit/Source/platform/weborigin/KURL.h" | 17 #include "third_party/WebKit/Source/platform/weborigin/KURL.h" |
18 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
19 #include "wtf/Functional.h" | 19 #include "wtf/Functional.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 EXPECT_EQ(LoadState::kLoadFailed, loaded()); | 120 EXPECT_EQ(LoadState::kLoadFailed, loaded()); |
121 m_histogramTester.expectTotalCount("Notifications.LoadFinishTime.Icon", 0); | 121 m_histogramTester.expectTotalCount("Notifications.LoadFinishTime.Icon", 0); |
122 m_histogramTester.expectTotalCount("Notifications.LoadFileSize.Icon", 0); | 122 m_histogramTester.expectTotalCount("Notifications.LoadFileSize.Icon", 0); |
123 // Should log a non-zero failure time. | 123 // Should log a non-zero failure time. |
124 m_histogramTester.expectTotalCount("Notifications.LoadFailTime.Icon", 1); | 124 m_histogramTester.expectTotalCount("Notifications.LoadFailTime.Icon", 1); |
125 m_histogramTester.expectBucketCount("Notifications.LoadFailTime.Icon", 0, 0); | 125 m_histogramTester.expectBucketCount("Notifications.LoadFailTime.Icon", 0, 0); |
126 } | 126 } |
127 | 127 |
128 } // namspace | 128 } // namspace |
129 } // namespace blink | 129 } // namespace blink |
OLD | NEW |