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 "core/exported/WebViewBase.h" |
| 6 #include "core/frame/WebLocalFrameBase.h" |
6 #include "platform/testing/HistogramTester.h" | 7 #include "platform/testing/HistogramTester.h" |
7 #include "platform/testing/UnitTestHelpers.h" | 8 #include "platform/testing/UnitTestHelpers.h" |
8 #include "web/WebLocalFrameImpl.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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 496 |
497 ExpectCount(WouldLoadReason::kCreated, 1); | 497 ExpectCount(WouldLoadReason::kCreated, 1); |
498 ExpectCount(WouldLoadReason::kVisible, 1); | 498 ExpectCount(WouldLoadReason::kVisible, 1); |
499 ExpectCount(WouldLoadReason::k1ScreenAway, 1); | 499 ExpectCount(WouldLoadReason::k1ScreenAway, 1); |
500 ExpectCount(WouldLoadReason::k2ScreensAway, 1); | 500 ExpectCount(WouldLoadReason::k2ScreensAway, 1); |
501 ExpectCount(WouldLoadReason::k3ScreensAway, 1); | 501 ExpectCount(WouldLoadReason::k3ScreensAway, 1); |
502 ExpectTotalCount(5); | 502 ExpectTotalCount(5); |
503 } | 503 } |
504 | 504 |
505 } // namespace blink | 505 } // namespace blink |
OLD | NEW |