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

Side by Side Diff: content/browser/tab_contents/test_tab_contents.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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_tab_contents.h" 5 #include "content/browser/tab_contents/test_tab_contents.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/browser_url_handler.h" 9 #include "content/browser/browser_url_handler.h"
10 #include "content/browser/renderer_host/mock_render_process_host.h" 10 #include "content/browser/renderer_host/mock_render_process_host.h"
11 #include "content/browser/renderer_host/render_view_host_impl.h" 11 #include "content/browser/renderer_host/render_view_host_impl.h"
12 #include "content/browser/renderer_host/test_render_view_host.h" 12 #include "content/browser/renderer_host/test_render_view_host.h"
13 #include "content/browser/site_instance_impl.h" 13 #include "content/browser/site_instance_impl.h"
14 #include "content/browser/tab_contents/navigation_entry_impl.h" 14 #include "content/browser/tab_contents/navigation_entry_impl.h"
15 #include "content/common/view_messages.h" 15 #include "content/common/view_messages.h"
16 #include "content/public/common/page_transition_types.h" 16 #include "content/public/common/page_transition_types.h"
17 #include "webkit/glue/webkit_glue.h" 17 #include "webkit/glue/webkit_glue.h"
18 #include "webkit/forms/password_form.h" 18 #include "webkit/forms/password_form.h"
19 19
20 using content::NavigationEntry; 20 using content::NavigationEntry;
21 using content::RenderViewHost;
22 using content::RenderViewHostImpl;
21 using content::SiteInstance; 23 using content::SiteInstance;
24 using content::TestRenderViewHost;
22 using content::WebContents; 25 using content::WebContents;
23 26
24 TestTabContents::TestTabContents(content::BrowserContext* browser_context, 27 TestTabContents::TestTabContents(content::BrowserContext* browser_context,
25 SiteInstance* instance) 28 SiteInstance* instance)
26 : TabContents(browser_context, instance, MSG_ROUTING_NONE, NULL, NULL), 29 : TabContents(browser_context, instance, MSG_ROUTING_NONE, NULL, NULL),
27 transition_cross_site(false), 30 transition_cross_site(false),
28 delegate_view_override_(NULL), 31 delegate_view_override_(NULL),
29 expect_set_history_length_and_prune_(false), 32 expect_set_history_length_and_prune_(false),
30 expect_set_history_length_and_prune_site_instance_(NULL), 33 expect_set_history_length_and_prune_site_instance_(NULL),
31 expect_set_history_length_and_prune_history_length_(0), 34 expect_set_history_length_and_prune_history_length_(0),
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 void TestTabContents::SetHistoryLengthAndPrune( 162 void TestTabContents::SetHistoryLengthAndPrune(
160 const SiteInstance* site_instance, int history_length, 163 const SiteInstance* site_instance, int history_length,
161 int32 min_page_id) { 164 int32 min_page_id) {
162 EXPECT_TRUE(expect_set_history_length_and_prune_); 165 EXPECT_TRUE(expect_set_history_length_and_prune_);
163 expect_set_history_length_and_prune_ = false; 166 expect_set_history_length_and_prune_ = false;
164 EXPECT_EQ(expect_set_history_length_and_prune_site_instance_, site_instance); 167 EXPECT_EQ(expect_set_history_length_and_prune_site_instance_, site_instance);
165 EXPECT_EQ(expect_set_history_length_and_prune_history_length_, 168 EXPECT_EQ(expect_set_history_length_and_prune_history_length_,
166 history_length); 169 history_length);
167 EXPECT_EQ(expect_set_history_length_and_prune_min_page_id_, min_page_id); 170 EXPECT_EQ(expect_set_history_length_and_prune_min_page_id_, min_page_id);
168 } 171 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/test_tab_contents.h ('k') | content/browser/tab_contents/web_contents_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698