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

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

Issue 2296483002: Fix some unit_tests under PlzNavigate (Closed)
Patch Set: teardown 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 5298 matching lines...) Expand 10 before | Expand all | Expand 10 after
5360 EXPECT_EQ(default_ssl_status.connection_status, 5360 EXPECT_EQ(default_ssl_status.connection_status,
5361 observer.details().ssl_status.connection_status); 5361 observer.details().ssl_status.connection_status);
5362 EXPECT_EQ(default_ssl_status.content_status, 5362 EXPECT_EQ(default_ssl_status.content_status,
5363 observer.details().ssl_status.content_status); 5363 observer.details().ssl_status.content_status);
5364 EXPECT_EQ(default_ssl_status.sct_statuses, 5364 EXPECT_EQ(default_ssl_status.sct_statuses,
5365 observer.details().ssl_status.sct_statuses); 5365 observer.details().ssl_status.sct_statuses);
5366 EXPECT_EQ(1, main_test_rfh()->GetProcess()->bad_msg_count()); 5366 EXPECT_EQ(1, main_test_rfh()->GetProcess()->bad_msg_count());
5367 } 5367 }
5368 5368
5369 } // namespace content 5369 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698