OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/test/test_web_contents.h" | 5 #include "content/test/test_web_contents.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "content/browser/browser_url_handler_impl.h" | 9 #include "content/browser/browser_url_handler_impl.h" |
10 #include "content/browser/frame_host/cross_process_frame_connector.h" | 10 #include "content/browser/frame_host/cross_process_frame_connector.h" |
11 #include "content/browser/frame_host/navigation_entry_impl.h" | 11 #include "content/browser/frame_host/navigation_entry_impl.h" |
12 #include "content/browser/frame_host/navigator.h" | 12 #include "content/browser/frame_host/navigator.h" |
13 #include "content/browser/renderer_host/render_view_host_impl.h" | 13 #include "content/browser/renderer_host/render_view_host_impl.h" |
14 #include "content/browser/site_instance_impl.h" | 14 #include "content/browser/site_instance_impl.h" |
15 #include "content/common/frame_messages.h" | 15 #include "content/common/frame_messages.h" |
16 #include "content/common/view_messages.h" | 16 #include "content/common/view_messages.h" |
17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
18 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
19 #include "content/public/browser/notification_types.h" | 19 #include "content/public/browser/notification_types.h" |
20 #include "content/public/common/page_state.h" | 20 #include "content/public/common/page_state.h" |
21 #include "content/public/common/page_transition_types.h" | 21 #include "content/public/common/page_transition_types.h" |
22 #include "content/public/test/mock_render_process_host.h" | 22 #include "content/public/test/mock_render_process_host.h" |
23 #include "content/test/test_render_view_host.h" | 23 #include "content/test/test_render_view_host.h" |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 | 26 |
27 TestWebContents::TestWebContents(BrowserContext* browser_context) | 27 TestWebContents::TestWebContents(BrowserContext* browser_context) |
28 : WebContentsImpl(browser_context, NULL), | 28 : WebContentsImpl(browser_context, NULL), |
29 transition_cross_site(false), | |
30 delegate_view_override_(NULL), | 29 delegate_view_override_(NULL), |
31 expect_set_history_length_and_prune_(false), | 30 expect_set_history_length_and_prune_(false), |
32 expect_set_history_length_and_prune_site_instance_(NULL), | 31 expect_set_history_length_and_prune_site_instance_(NULL), |
33 expect_set_history_length_and_prune_history_length_(0), | 32 expect_set_history_length_and_prune_history_length_(0), |
34 expect_set_history_length_and_prune_min_page_id_(-1) { | 33 expect_set_history_length_and_prune_min_page_id_(-1) { |
35 } | 34 } |
36 | 35 |
37 TestWebContents* TestWebContents::Create(BrowserContext* browser_context, | 36 TestWebContents* TestWebContents::Create(BrowserContext* browser_context, |
38 SiteInstance* instance) { | 37 SiteInstance* instance) { |
39 TestWebContents* test_web_contents = new TestWebContents(browser_context); | 38 TestWebContents* test_web_contents = new TestWebContents(browser_context); |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 } | 247 } |
249 | 248 |
250 void TestWebContents::ShowCreatedWidget(int route_id, | 249 void TestWebContents::ShowCreatedWidget(int route_id, |
251 const gfx::Rect& initial_pos) { | 250 const gfx::Rect& initial_pos) { |
252 } | 251 } |
253 | 252 |
254 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { | 253 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { |
255 } | 254 } |
256 | 255 |
257 } // namespace content | 256 } // namespace content |
OLD | NEW |