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

Side by Side Diff: content/browser/frame_host/navigator_impl_unittest.cc

Issue 2296483002: Fix some unit_tests under PlzNavigate (Closed)
Patch Set: not in public interface Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/feature_list.h" 7 #include "base/feature_list.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "content/browser/frame_host/navigation_controller_impl.h" 11 #include "content/browser/frame_host/navigation_controller_impl.h"
12 #include "content/browser/frame_host/navigation_entry_impl.h" 12 #include "content/browser/frame_host/navigation_entry_impl.h"
13 #include "content/browser/frame_host/navigation_request.h" 13 #include "content/browser/frame_host/navigation_request.h"
14 #include "content/browser/frame_host/navigation_request_info.h" 14 #include "content/browser/frame_host/navigation_request_info.h"
15 #include "content/browser/frame_host/navigator.h" 15 #include "content/browser/frame_host/navigator.h"
16 #include "content/browser/frame_host/navigator_impl.h" 16 #include "content/browser/frame_host/navigator_impl.h"
17 #include "content/browser/frame_host/render_frame_host_manager.h" 17 #include "content/browser/frame_host/render_frame_host_manager.h"
18 #include "content/browser/site_instance_impl.h" 18 #include "content/browser/site_instance_impl.h"
19 #include "content/browser/streams/stream.h" 19 #include "content/browser/streams/stream.h"
20 #include "content/common/frame_messages.h" 20 #include "content/common/frame_messages.h"
21 #include "content/common/navigation_params.h" 21 #include "content/common/navigation_params.h"
22 #include "content/common/site_isolation_policy.h" 22 #include "content/common/site_isolation_policy.h"
23 #include "content/public/browser/navigation_data.h" 23 #include "content/public/browser/navigation_data.h"
24 #include "content/public/browser/stream_handle.h" 24 #include "content/public/browser/stream_handle.h"
25 #include "content/public/common/content_features.h" 25 #include "content/public/common/content_features.h"
26 #include "content/public/common/url_constants.h" 26 #include "content/public/common/url_constants.h"
27 #include "content/public/common/url_utils.h" 27 #include "content/public/common/url_utils.h"
28 #include "content/public/test/browser_side_navigation_test_utils.h"
28 #include "content/public/test/mock_render_process_host.h" 29 #include "content/public/test/mock_render_process_host.h"
29 #include "content/public/test/test_utils.h" 30 #include "content/public/test/test_utils.h"
30 #include "content/test/browser_side_navigation_test_utils.h"
31 #include "content/test/test_navigation_url_loader.h" 31 #include "content/test/test_navigation_url_loader.h"
32 #include "content/test/test_render_frame_host.h" 32 #include "content/test/test_render_frame_host.h"
33 #include "content/test/test_web_contents.h" 33 #include "content/test/test_web_contents.h"
34 #include "net/base/load_flags.h" 34 #include "net/base/load_flags.h"
35 #include "net/http/http_response_headers.h" 35 #include "net/http/http_response_headers.h"
36 #include "net/url_request/redirect_info.h" 36 #include "net/url_request/redirect_info.h"
37 #include "ui/base/page_transition_types.h" 37 #include "ui/base/page_transition_types.h"
38 #include "url/url_constants.h" 38 #include "url/url_constants.h"
39 39
40 #if !defined(OS_ANDROID) 40 #if !defined(OS_ANDROID)
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 main_test_rfh()->PrepareForCommit(); 1162 main_test_rfh()->PrepareForCommit();
1163 1163
1164 // Claim that the navigation was within same page. 1164 // Claim that the navigation was within same page.
1165 int bad_msg_count = process()->bad_msg_count(); 1165 int bad_msg_count = process()->bad_msg_count();
1166 GetSpeculativeRenderFrameHost(node)->SendNavigateWithModificationCallback( 1166 GetSpeculativeRenderFrameHost(node)->SendNavigateWithModificationCallback(
1167 0, entry_id, true, kUrl2, base::Bind(SetWithinPage, kUrl1)); 1167 0, entry_id, true, kUrl2, base::Bind(SetWithinPage, kUrl1));
1168 EXPECT_EQ(process()->bad_msg_count(), bad_msg_count + 1); 1168 EXPECT_EQ(process()->bad_msg_count(), bad_msg_count + 1);
1169 } 1169 }
1170 1170
1171 } // namespace content 1171 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698