From cad01431b348b5c01ded71f05f2f30f8dcc41d22 Mon Sep 17 00:00:00 2001 From: "sky@google.com" Date: Thu, 29 Jan 2009 21:59:55 +0000 Subject: Provide the option for HTTPServer to be created with a specific MessageLoop. I'm going to need this when running ui tests in process. In this case I'll pass in the IO thread. I'll change all callers to use the new method, but before doing that wanted to make sure you're ok with it. BUG=none TEST=none Review URL: http://codereview.chromium.org/19039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8915 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/session_history_uitest.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'chrome/browser/session_history_uitest.cc') diff --git a/chrome/browser/session_history_uitest.cc b/chrome/browser/session_history_uitest.cc index d4a1e2a..7abd170 100644 --- a/chrome/browser/session_history_uitest.cc +++ b/chrome/browser/session_history_uitest.cc @@ -108,7 +108,7 @@ class SessionHistoryTest : public UITest { TEST_F(SessionHistoryTest, BasicBackForward) { scoped_refptr server = - HTTPTestServer::CreateServer(kDocRoot); + HTTPTestServer::CreateServer(kDocRoot, NULL); ASSERT_TRUE(NULL != server.get()); // about:blank should be loaded first. @@ -174,7 +174,7 @@ TEST_F(SessionHistoryTest, FrameBackForward) { return; scoped_refptr server = - HTTPTestServer::CreateServer(kDocRoot); + HTTPTestServer::CreateServer(kDocRoot, NULL); ASSERT_TRUE(NULL != server.get()); // about:blank should be loaded first. @@ -240,7 +240,7 @@ TEST_F(SessionHistoryTest, FrameBackForward) { // Test that back/forward preserves POST data and document state in subframes. TEST_F(SessionHistoryTest, FrameFormBackForward) { scoped_refptr server = - HTTPTestServer::CreateServer(kDocRoot); + HTTPTestServer::CreateServer(kDocRoot, NULL); ASSERT_TRUE(NULL != server.get()); // about:blank should be loaded first. @@ -302,7 +302,7 @@ TEST_F(SessionHistoryTest, FrameFormBackForward) { // across frames (ie, from frame -> nonframe). TEST_F(SessionHistoryTest, CrossFrameFormBackForward) { scoped_refptr server = - HTTPTestServer::CreateServer(kDocRoot); + HTTPTestServer::CreateServer(kDocRoot, NULL); ASSERT_TRUE(NULL != server.get()); // about:blank should be loaded first. @@ -349,7 +349,7 @@ TEST_F(SessionHistoryTest, CrossFrameFormBackForward) { // navigations. Bug 730379. TEST_F(SessionHistoryTest, FragmentBackForward) { scoped_refptr server = - HTTPTestServer::CreateServer(kDocRoot); + HTTPTestServer::CreateServer(kDocRoot, NULL); ASSERT_TRUE(NULL != server.get()); // about:blank should be loaded first. @@ -419,7 +419,7 @@ TEST_F(SessionHistoryTest, FragmentBackForward) { // since we'll be waiting forever for a load stop event. TEST_F(SessionHistoryTest, JavascriptHistory) { scoped_refptr server = - HTTPTestServer::CreateServer(kDocRoot); + HTTPTestServer::CreateServer(kDocRoot, NULL); ASSERT_TRUE(NULL != server.get()); // about:blank should be loaded first. @@ -502,7 +502,7 @@ TEST_F(SessionHistoryTest, LocationReplace) { // Test that using location.replace doesn't leave the title of the old page // visible. scoped_refptr server = - HTTPTestServer::CreateServer(kDocRoot); + HTTPTestServer::CreateServer(kDocRoot, NULL); ASSERT_TRUE(NULL != server.get()); ASSERT_TRUE(tab_->NavigateToURL(server->TestServerPage( -- cgit v1.1