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

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

Issue 2321543002: Merge CrossSiteResourceHandler and NavigationResourceThrottle (Closed)
Patch Set: Addressed nits Created 4 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/frame_host/navigation_controller_impl.h" 5 #include "content/browser/frame_host/navigation_controller_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <tuple> 11 #include <tuple>
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ptr_util.h" 17 #include "base/memory/ptr_util.h"
18 #include "base/stl_util.h" 18 #include "base/stl_util.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/browser/frame_host/cross_site_transferring_request.h"
24 #include "content/browser/frame_host/frame_navigation_entry.h" 23 #include "content/browser/frame_host/frame_navigation_entry.h"
25 #include "content/browser/frame_host/navigation_entry_impl.h" 24 #include "content/browser/frame_host/navigation_entry_impl.h"
26 #include "content/browser/frame_host/navigation_entry_screenshot_manager.h" 25 #include "content/browser/frame_host/navigation_entry_screenshot_manager.h"
27 #include "content/browser/frame_host/navigation_request.h" 26 #include "content/browser/frame_host/navigation_request.h"
28 #include "content/browser/frame_host/navigator.h" 27 #include "content/browser/frame_host/navigator.h"
29 #include "content/browser/frame_host/navigator_impl.h" 28 #include "content/browser/frame_host/navigator_impl.h"
30 #include "content/browser/site_instance_impl.h" 29 #include "content/browser/site_instance_impl.h"
31 #include "content/browser/web_contents/web_contents_impl.h" 30 #include "content/browser/web_contents/web_contents_impl.h"
32 #include "content/common/frame_messages.h" 31 #include "content/common/frame_messages.h"
33 #include "content/common/frame_owner_properties.h" 32 #include "content/common/frame_owner_properties.h"
(...skipping 5296 matching lines...) Expand 10 before | Expand all | Expand 10 after
5330 // means that occasionally a navigation conflict will end up with one entry 5329 // means that occasionally a navigation conflict will end up with one entry
5331 // bubbling to the end of the entry list, but that's the least-bad option. 5330 // bubbling to the end of the entry list, but that's the least-bad option.
5332 EXPECT_EQ(3, controller.GetEntryCount()); 5331 EXPECT_EQ(3, controller.GetEntryCount());
5333 EXPECT_EQ(2, controller.GetCurrentEntryIndex()); 5332 EXPECT_EQ(2, controller.GetCurrentEntryIndex());
5334 EXPECT_EQ(url_a, controller.GetEntryAtIndex(0)->GetURL()); 5333 EXPECT_EQ(url_a, controller.GetEntryAtIndex(0)->GetURL());
5335 EXPECT_EQ(url_c, controller.GetEntryAtIndex(1)->GetURL()); 5334 EXPECT_EQ(url_c, controller.GetEntryAtIndex(1)->GetURL());
5336 EXPECT_EQ(url_b, controller.GetEntryAtIndex(2)->GetURL()); 5335 EXPECT_EQ(url_b, controller.GetEntryAtIndex(2)->GetURL());
5337 } 5336 }
5338 5337
5339 } // namespace content 5338 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/cross_site_transferring_request.cc ('k') | content/browser/frame_host/navigation_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698