Index: chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h |
diff --git a/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h b/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h |
index 3f44f355577938ec4e3660e619c3d9b67eea2177..9aa03a91feb9f3f92149da516c88c8a9329a5a70 100644 |
--- a/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h |
+++ b/chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h |
@@ -11,6 +11,7 @@ |
#include "components/page_load_metrics/browser/metrics_web_contents_observer.h" |
#include "content/public/test/web_contents_tester.h" |
#include "third_party/WebKit/public/web/WebInputEvent.h" |
+#include "ui/base/page_transition_types.h" |
namespace page_load_metrics { |
@@ -35,6 +36,11 @@ class PageLoadMetricsObserverTestHarness |
// navigation. |
void StartNavigation(const GURL& gurl); |
+ // Simulates committing a navigation to the given URL with the given |
+ // PageTransition. |
+ void NavigateWithPageTransitionAndCommit(const GURL& url, |
+ ui::PageTransition transition); |
+ |
// Call this to simulate sending a PageLoadTiming IPC from the render process |
// to the browser process. These will update the timing information for the |
// most recently committed navigation. |