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

Side by Side Diff: content/browser/frame_host/navigation_controller_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 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>
(...skipping 27 matching lines...) Expand all
38 #include "content/public/browser/notification_registrar.h" 38 #include "content/public/browser/notification_registrar.h"
39 #include "content/public/browser/notification_types.h" 39 #include "content/public/browser/notification_types.h"
40 #include "content/public/browser/render_view_host.h" 40 #include "content/public/browser/render_view_host.h"
41 #include "content/public/browser/web_contents_delegate.h" 41 #include "content/public/browser/web_contents_delegate.h"
42 #include "content/public/browser/web_contents_observer.h" 42 #include "content/public/browser/web_contents_observer.h"
43 #include "content/public/common/browser_side_navigation_policy.h" 43 #include "content/public/common/browser_side_navigation_policy.h"
44 #include "content/public/common/page_state.h" 44 #include "content/public/common/page_state.h"
45 #include "content/public/common/page_type.h" 45 #include "content/public/common/page_type.h"
46 #include "content/public/common/resource_request_body.h" 46 #include "content/public/common/resource_request_body.h"
47 #include "content/public/common/url_constants.h" 47 #include "content/public/common/url_constants.h"
48 #include "content/public/test/browser_side_navigation_test_utils.h"
48 #include "content/public/test/mock_render_process_host.h" 49 #include "content/public/test/mock_render_process_host.h"
49 #include "content/public/test/test_notification_tracker.h" 50 #include "content/public/test/test_notification_tracker.h"
50 #include "content/public/test/test_utils.h" 51 #include "content/public/test/test_utils.h"
51 #include "content/test/browser_side_navigation_test_utils.h"
52 #include "content/test/test_render_frame_host.h" 52 #include "content/test/test_render_frame_host.h"
53 #include "content/test/test_render_view_host.h" 53 #include "content/test/test_render_view_host.h"
54 #include "content/test/test_web_contents.h" 54 #include "content/test/test_web_contents.h"
55 #include "skia/ext/platform_canvas.h" 55 #include "skia/ext/platform_canvas.h"
56 #include "testing/gtest/include/gtest/gtest.h" 56 #include "testing/gtest/include/gtest/gtest.h"
57 #include "third_party/WebKit/public/web/WebSandboxFlags.h" 57 #include "third_party/WebKit/public/web/WebSandboxFlags.h"
58 58
59 using base::Time; 59 using base::Time;
60 60
61 namespace { 61 namespace {
(...skipping 5256 matching lines...) Expand 10 before | Expand all | Expand 10 after
5318 // means that occasionally a navigation conflict will end up with one entry 5318 // means that occasionally a navigation conflict will end up with one entry
5319 // bubbling to the end of the entry list, but that's the least-bad option. 5319 // bubbling to the end of the entry list, but that's the least-bad option.
5320 EXPECT_EQ(3, controller.GetEntryCount()); 5320 EXPECT_EQ(3, controller.GetEntryCount());
5321 EXPECT_EQ(2, controller.GetCurrentEntryIndex()); 5321 EXPECT_EQ(2, controller.GetCurrentEntryIndex());
5322 EXPECT_EQ(url_a, controller.GetEntryAtIndex(0)->GetURL()); 5322 EXPECT_EQ(url_a, controller.GetEntryAtIndex(0)->GetURL());
5323 EXPECT_EQ(url_c, controller.GetEntryAtIndex(1)->GetURL()); 5323 EXPECT_EQ(url_c, controller.GetEntryAtIndex(1)->GetURL());
5324 EXPECT_EQ(url_b, controller.GetEntryAtIndex(2)->GetURL()); 5324 EXPECT_EQ(url_b, controller.GetEntryAtIndex(2)->GetURL());
5325 } 5325 }
5326 5326
5327 } // namespace content 5327 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/base/browser_with_test_window_test.cc ('k') | content/browser/frame_host/navigator_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698