| 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/browser/tab_contents/test_web_contents.h" | 5 #include "content/browser/tab_contents/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/renderer_host/render_view_host_impl.h" | 10 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 11 #include "content/browser/renderer_host/test_render_view_host.h" | 11 #include "content/browser/renderer_host/test_render_view_host.h" |
| 12 #include "content/browser/site_instance_impl.h" | 12 #include "content/browser/site_instance_impl.h" |
| 13 #include "content/browser/tab_contents/navigation_entry_impl.h" | 13 #include "content/browser/web_contents/navigation_entry_impl.h" |
| 14 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
| 15 #include "content/public/common/page_transition_types.h" | 15 #include "content/public/common/page_transition_types.h" |
| 16 #include "content/test/mock_render_process_host.h" | 16 #include "content/test/mock_render_process_host.h" |
| 17 #include "webkit/forms/password_form.h" | 17 #include "webkit/forms/password_form.h" |
| 18 #include "webkit/glue/webkit_glue.h" | 18 #include "webkit/glue/webkit_glue.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 TestWebContents::TestWebContents(BrowserContext* browser_context, | 22 TestWebContents::TestWebContents(BrowserContext* browser_context, |
| 23 SiteInstance* instance) | 23 SiteInstance* instance) |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 int32 min_page_id) { | 172 int32 min_page_id) { |
| 173 EXPECT_TRUE(expect_set_history_length_and_prune_); | 173 EXPECT_TRUE(expect_set_history_length_and_prune_); |
| 174 expect_set_history_length_and_prune_ = false; | 174 expect_set_history_length_and_prune_ = false; |
| 175 EXPECT_EQ(expect_set_history_length_and_prune_site_instance_, site_instance); | 175 EXPECT_EQ(expect_set_history_length_and_prune_site_instance_, site_instance); |
| 176 EXPECT_EQ(expect_set_history_length_and_prune_history_length_, | 176 EXPECT_EQ(expect_set_history_length_and_prune_history_length_, |
| 177 history_length); | 177 history_length); |
| 178 EXPECT_EQ(expect_set_history_length_and_prune_min_page_id_, min_page_id); | 178 EXPECT_EQ(expect_set_history_length_and_prune_min_page_id_, min_page_id); |
| 179 } | 179 } |
| 180 | 180 |
| 181 } // namespace content | 181 } // namespace content |
| OLD | NEW |