Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.cc

Issue 2177743002: Migrate page_load_metrics out of components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: migrate page_load_metrics_messages to common message generator Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "components/page_load_metrics/common/page_load_metrics_messages.h" 11 #include "chrome/common/page_load_metrics/page_load_metrics_messages.h"
12 #include "content/public/browser/navigation_entry.h" 12 #include "content/public/browser/navigation_entry.h"
13 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
14 #include "content/public/test/web_contents_tester.h" 14 #include "content/public/test/web_contents_tester.h"
15 #include "third_party/WebKit/public/web/WebInputEvent.h" 15 #include "third_party/WebKit/public/web/WebInputEvent.h"
16 16
17 namespace page_load_metrics { 17 namespace page_load_metrics {
18 18
19 namespace { 19 namespace {
20 20
21 class TestPageLoadMetricsEmbedderInterface 21 class TestPageLoadMetricsEmbedderInterface
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 ui::PageTransition transition) { 148 ui::PageTransition transition) {
149 controller().LoadURL(url, content::Referrer(), transition, std::string()); 149 controller().LoadURL(url, content::Referrer(), transition, std::string());
150 int pending_id = controller().GetPendingEntry()->GetUniqueID(); 150 int pending_id = controller().GetPendingEntry()->GetUniqueID();
151 const bool did_create_new_entry = true; 151 const bool did_create_new_entry = true;
152 content::WebContentsTester::For(web_contents()) 152 content::WebContentsTester::For(web_contents())
153 ->TestDidNavigate(web_contents()->GetMainFrame(), 1, pending_id, 153 ->TestDidNavigate(web_contents()->GetMainFrame(), 1, pending_id,
154 did_create_new_entry, url, transition); 154 did_create_new_entry, url, transition);
155 } 155 }
156 156
157 } // namespace page_load_metrics 157 } // namespace page_load_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698