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

Unified Diff: content/browser/frame_host/render_frame_host_manager_unittest.cc

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: rebase Created 4 years 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/render_frame_host_manager_unittest.cc
diff --git a/content/browser/frame_host/render_frame_host_manager_unittest.cc b/content/browser/frame_host/render_frame_host_manager_unittest.cc
index f33bea5eb2f332bfa5f245d7f5dd8b8fcbd7e79d..5c1eefd82f43fec9a13c1182735f7a595be8055b 100644
--- a/content/browser/frame_host/render_frame_host_manager_unittest.cc
+++ b/content/browser/frame_host/render_frame_host_manager_unittest.cc
@@ -41,6 +41,7 @@
#include "content/public/common/bindings_policy.h"
#include "content/public/common/browser_side_navigation_policy.h"
#include "content/public/common/javascript_message_type.h"
+#include "content/public/common/previews_state.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
#include "content/public/test/browser_side_navigation_test_utils.h"
@@ -436,7 +437,7 @@ class RenderFrameHostManagerTest : public RenderViewHostImplTestHarness {
NavigationRequest::CreateBrowserInitiated(
manager->frame_tree_node_, frame_entry->url(),
frame_entry->referrer(), *frame_entry, entry, navigate_type,
- LOFI_UNSPECIFIED, false, false, base::TimeTicks::Now(),
+ PREVIEWS_UNSPECIFIED, false, false, base::TimeTicks::Now(),
controller);
// Simulates request creation that triggers the 1st internal call to
@@ -2839,7 +2840,7 @@ TEST_F(RenderFrameHostManagerTestWithBrowserSideNavigation,
NavigationRequest::CreateBrowserInitiated(
contents()->GetFrameTree()->root(), frame_entry->url(),
frame_entry->referrer(), *frame_entry, entry,
- FrameMsg_Navigate_Type::NORMAL, LOFI_UNSPECIFIED, false, false,
+ FrameMsg_Navigate_Type::NORMAL, PREVIEWS_UNSPECIFIED, false, false,
base::TimeTicks::Now(),
static_cast<NavigationControllerImpl*>(&controller()));
manager->DidCreateNavigationRequest(navigation_request.get());
@@ -2900,7 +2901,7 @@ TEST_F(RenderFrameHostManagerTestWithBrowserSideNavigation,
NavigationRequest::CreateBrowserInitiated(
contents()->GetFrameTree()->root(), frame_entry->url(),
frame_entry->referrer(), *frame_entry, entry,
- FrameMsg_Navigate_Type::NORMAL, LOFI_UNSPECIFIED, false, false,
+ FrameMsg_Navigate_Type::NORMAL, PREVIEWS_UNSPECIFIED, false, false,
base::TimeTicks::Now(),
static_cast<NavigationControllerImpl*>(&controller()));
manager->DidCreateNavigationRequest(navigation_request.get());
@@ -2958,7 +2959,7 @@ TEST_F(RenderFrameHostManagerTestWithBrowserSideNavigation,
NavigationRequest::CreateBrowserInitiated(
contents()->GetFrameTree()->root(), frame_entry->url(),
frame_entry->referrer(), *frame_entry, entry,
- FrameMsg_Navigate_Type::NORMAL, LOFI_UNSPECIFIED, false, false,
+ FrameMsg_Navigate_Type::NORMAL, PREVIEWS_UNSPECIFIED, false, false,
base::TimeTicks::Now(),
static_cast<NavigationControllerImpl*>(&controller()));
manager->DidCreateNavigationRequest(navigation_request.get());

Powered by Google App Engine
This is Rietveld 408576698