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

Unified Diff: content/browser/tab_contents/navigation_controller_impl_unittest.cc

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/tab_contents/navigation_controller_impl_unittest.cc
diff --git a/content/browser/tab_contents/navigation_controller_impl_unittest.cc b/content/browser/tab_contents/navigation_controller_impl_unittest.cc
index 3120fe3555f93b337a3fa834950f38d743cfe90f..1546571a58f255927815da0443fa8f3ec8463d00 100644
--- a/content/browser/tab_contents/navigation_controller_impl_unittest.cc
+++ b/content/browser/tab_contents/navigation_controller_impl_unittest.cc
@@ -2083,7 +2083,8 @@ TEST_F(NavigationControllerTest, CopyStateFromAndPrune) {
EXPECT_EQ(1, controller.GetEntryAtIndex(1)->GetPageID());
EXPECT_EQ(1, contents()->GetMaxPageIDForSiteInstance(instance1));
- scoped_ptr<TestTabContents> other_contents(CreateTestTabContents());
+ scoped_ptr<TestTabContents> other_contents(
+ static_cast<TestTabContents*>(CreateTestWebContents()));
NavigationControllerImpl& other_controller =
other_contents->GetControllerImpl();
other_contents->NavigateAndCommit(url3);
@@ -2128,7 +2129,8 @@ TEST_F(NavigationControllerTest, CopyStateFromAndPrune2) {
NavigateAndCommit(url2);
controller.GoBack();
- scoped_ptr<TestTabContents> other_contents(CreateTestTabContents());
+ scoped_ptr<TestTabContents> other_contents(
+ static_cast<TestTabContents*>(CreateTestWebContents()));
NavigationControllerImpl& other_controller =
other_contents->GetControllerImpl();
other_contents->ExpectSetHistoryLengthAndPrune(NULL, 1, -1);
@@ -2162,7 +2164,8 @@ TEST_F(NavigationControllerTest, CopyStateFromAndPrune3) {
NavigateAndCommit(url2);
controller.GoBack();
- scoped_ptr<TestTabContents> other_contents(CreateTestTabContents());
+ scoped_ptr<TestTabContents> other_contents(
+ static_cast<TestTabContents*>(CreateTestWebContents()));
NavigationControllerImpl& other_controller =
other_contents->GetControllerImpl();
other_controller.LoadURL(
@@ -2212,7 +2215,8 @@ TEST_F(NavigationControllerTest, CopyStateFromAndPruneMaxEntries) {
NavigateAndCommit(url2);
NavigateAndCommit(url3);
- scoped_ptr<TestTabContents> other_contents(CreateTestTabContents());
+ scoped_ptr<TestTabContents> other_contents(
+ static_cast<TestTabContents*>(CreateTestWebContents()));
NavigationControllerImpl& other_controller =
other_contents->GetControllerImpl();
other_contents->NavigateAndCommit(url4);
« no previous file with comments | « content/browser/site_instance_impl_unittest.cc ('k') | content/browser/tab_contents/render_view_host_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698