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 "core/exported/WebViewBase.h" |
5 #include "platform/testing/HistogramTester.h" | 6 #include "platform/testing/HistogramTester.h" |
6 #include "platform/testing/UnitTestHelpers.h" | 7 #include "platform/testing/UnitTestHelpers.h" |
7 #include "web/WebLocalFrameImpl.h" | 8 #include "web/WebLocalFrameImpl.h" |
8 #include "web/WebViewImpl.h" | |
9 #include "web/tests/sim/SimCompositor.h" | 9 #include "web/tests/sim/SimCompositor.h" |
10 #include "web/tests/sim/SimDisplayItemList.h" | 10 #include "web/tests/sim/SimDisplayItemList.h" |
11 #include "web/tests/sim/SimRequest.h" | 11 #include "web/tests/sim/SimRequest.h" |
12 #include "web/tests/sim/SimTest.h" | 12 #include "web/tests/sim/SimTest.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 static const char kHistogramName[] = | 16 static const char kHistogramName[] = |
17 "Navigation.DeferredDocumentLoading.StatesV4"; | 17 "Navigation.DeferredDocumentLoading.StatesV4"; |
18 | 18 |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 | 491 |
492 ExpectCount(WouldLoadReason::kCreated, 1); | 492 ExpectCount(WouldLoadReason::kCreated, 1); |
493 ExpectCount(WouldLoadReason::kVisible, 1); | 493 ExpectCount(WouldLoadReason::kVisible, 1); |
494 ExpectCount(WouldLoadReason::k1ScreenAway, 1); | 494 ExpectCount(WouldLoadReason::k1ScreenAway, 1); |
495 ExpectCount(WouldLoadReason::k2ScreensAway, 1); | 495 ExpectCount(WouldLoadReason::k2ScreensAway, 1); |
496 ExpectCount(WouldLoadReason::k3ScreensAway, 1); | 496 ExpectCount(WouldLoadReason::k3ScreensAway, 1); |
497 ExpectTotalCount(5); | 497 ExpectTotalCount(5); |
498 } | 498 } |
499 | 499 |
500 } // namespace blink | 500 } // namespace blink |
OLD | NEW |