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

Unified Diff: content/browser/frame_host/navigator_impl.h

Issue 730553002: PlzNavigate: Refactor unit test helper functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Nasko's comments Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigator_impl.h
diff --git a/content/browser/frame_host/navigator_impl.h b/content/browser/frame_host/navigator_impl.h
index e142b3fd1ffddc0178aec59e92aae5a7f8f3348c..8618e0f9232311c6211088242963eae870cd2a1e 100644
--- a/content/browser/frame_host/navigator_impl.h
+++ b/content/browser/frame_host/navigator_impl.h
@@ -82,11 +82,16 @@ class CONTENT_EXPORT NavigatorImpl : public Navigator {
const base::TimeTicks& renderer_before_unload_end_time) override;
void CancelNavigation(FrameTreeNode* frame_tree_node) override;
+ // PlzNavigate
+ // Returns the navigation request for a given node. Used in tests.
+ NavigationRequest* GetNavigationRequestForNodeForTesting(
+ FrameTreeNode* frame_tree_node);
+
private:
// Holds data used to track browser side navigation metrics.
struct NavigationMetricsData;
- friend class NavigatorTest;
+ friend class NavigatorTestWithBrowserSideNavigation;
~NavigatorImpl() override;
// Navigates to the given entry, which must be the pending entry. Private
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.cc » ('j') | content/test/browser_side_navigation_test_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698