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/page_load_metrics_observer_ test_harness.h" | 5 #include "chrome/browser/page_load_metrics/observers/page_load_metrics_observer_ test_harness.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
Bryan McQuade
2017/05/07 19:44:41
looks like this file can be reverted
Bryan McQuade
2017/05/07 19:44:41
looks like this file can be reverted
lpy
2017/05/08 18:38:33
Done.
| |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/run_loop.h" | |
12 #include "chrome/browser/page_load_metrics/page_load_metrics_embedder_interface. h" | 13 #include "chrome/browser/page_load_metrics/page_load_metrics_embedder_interface. h" |
13 #include "chrome/browser/page_load_metrics/page_load_metrics_util.h" | 14 #include "chrome/browser/page_load_metrics/page_load_metrics_util.h" |
15 #include "chrome/common/page_load_metrics/page_load_metrics.mojom.h" | |
14 #include "chrome/common/page_load_metrics/page_load_metrics_messages.h" | 16 #include "chrome/common/page_load_metrics/page_load_metrics_messages.h" |
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data .h" | 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data .h" |
16 #include "content/public/browser/navigation_entry.h" | 18 #include "content/public/browser/navigation_entry.h" |
17 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
18 #include "content/public/browser/web_contents_observer.h" | 20 #include "content/public/browser/web_contents_observer.h" |
19 #include "content/public/test/web_contents_tester.h" | 21 #include "content/public/test/web_contents_tester.h" |
20 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 22 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
21 | 23 |
22 namespace page_load_metrics { | 24 namespace page_load_metrics { |
23 | 25 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
193 } | 195 } |
194 | 196 |
195 void PageLoadMetricsObserverTestHarness::NavigateWithPageTransitionAndCommit( | 197 void PageLoadMetricsObserverTestHarness::NavigateWithPageTransitionAndCommit( |
196 const GURL& url, | 198 const GURL& url, |
197 ui::PageTransition transition) { | 199 ui::PageTransition transition) { |
198 controller().LoadURL(url, content::Referrer(), transition, std::string()); | 200 controller().LoadURL(url, content::Referrer(), transition, std::string()); |
199 content::WebContentsTester::For(web_contents())->CommitPendingNavigation(); | 201 content::WebContentsTester::For(web_contents())->CommitPendingNavigation(); |
200 } | 202 } |
201 | 203 |
202 } // namespace page_load_metrics | 204 } // namespace page_load_metrics |
OLD | NEW |