OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/page_load_metrics/observers/core_page_load_metrics_obse
rver.h" | 5 #include "chrome/browser/page_load_metrics/observers/core_page_load_metrics_obse
rver.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "chrome/browser/page_load_metrics/observers/page_load_metrics_observer_
test_harness.h" | 8 #include "chrome/browser/page_load_metrics/observers/page_load_metrics_observer_
test_harness.h" |
| 9 #include "chrome/browser/page_load_metrics/page_load_metrics_util.h" |
9 #include "chrome/test/base/testing_browser_process.h" | 10 #include "chrome/test/base/testing_browser_process.h" |
10 #include "components/page_load_metrics/browser/page_load_metrics_util.h" | |
11 #include "components/rappor/rappor_utils.h" | 11 #include "components/rappor/rappor_utils.h" |
12 #include "components/rappor/test_rappor_service.h" | 12 #include "components/rappor/test_rappor_service.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 const char kDefaultTestUrl[] = "https://google.com"; | 16 const char kDefaultTestUrl[] = "https://google.com"; |
17 const char kDefaultTestUrlAnchor[] = "https://google.com#samepage"; | 17 const char kDefaultTestUrlAnchor[] = "https://google.com#samepage"; |
18 const char kDefaultTestUrl2[] = "https://whatever.com"; | 18 const char kDefaultTestUrl2[] = "https://whatever.com"; |
19 | 19 |
20 } // namespace | 20 } // namespace |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 histogram_tester().ExpectTotalCount( | 580 histogram_tester().ExpectTotalCount( |
581 internal::kHistogramLoadTypeParseStartReload, 0); | 581 internal::kHistogramLoadTypeParseStartReload, 0); |
582 histogram_tester().ExpectTotalCount( | 582 histogram_tester().ExpectTotalCount( |
583 internal::kHistogramLoadTypeParseStartForwardBack, 0); | 583 internal::kHistogramLoadTypeParseStartForwardBack, 0); |
584 histogram_tester().ExpectTotalCount( | 584 histogram_tester().ExpectTotalCount( |
585 internal::kHistogramLoadTypeParseStartNewNavigation, 1); | 585 internal::kHistogramLoadTypeParseStartNewNavigation, 1); |
586 histogram_tester().ExpectBucketCount( | 586 histogram_tester().ExpectBucketCount( |
587 internal::kHistogramLoadTypeParseStartNewNavigation, | 587 internal::kHistogramLoadTypeParseStartNewNavigation, |
588 timing.parse_start.value().InMilliseconds(), 1); | 588 timing.parse_start.value().InMilliseconds(), 1); |
589 } | 589 } |
OLD | NEW |