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/printing/printing_layout_uitest.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'chrome/browser/printing') diff --git a/chrome/browser/printing/printing_layout_uitest.cc b/chrome/browser/printing/printing_layout_uitest.cc index a337bef..4e9698f 100644 --- a/chrome/browser/printing/printing_layout_uitest.cc +++ b/chrome/browser/printing/printing_layout_uitest.cc @@ -482,7 +482,7 @@ TEST_F(PrintingLayoutTextTest, DISABLED_Complex) { // Print a document, check its output. scoped_refptr server = - HTTPTestServer::CreateServer(kDocRoot); + HTTPTestServer::CreateServer(kDocRoot, NULL); ASSERT_TRUE(NULL != server.get()); NavigateToURL(server->TestServerPage("files/printing/test1.html")); @@ -512,7 +512,8 @@ TEST_F(PrintingLayoutTestHidden, ManyTimes) { if (IsTestCaseDisabled()) return; - scoped_refptr server(HTTPTestServer::CreateServer(kDocRoot)); + scoped_refptr server( + HTTPTestServer::CreateServer(kDocRoot, NULL)); ASSERT_TRUE(NULL != server.get()); DismissTheWindow dismisser(base::GetProcId(process())); @@ -562,7 +563,8 @@ TEST_F(PrintingLayoutTest, DISABLED_Delayed) { if (IsTestCaseDisabled()) return; - scoped_refptr server(HTTPTestServer::CreateServer(kDocRoot)); + scoped_refptr server( + HTTPTestServer::CreateServer(kDocRoot, NULL)); ASSERT_TRUE(NULL != server.get()); { @@ -595,7 +597,8 @@ TEST_F(PrintingLayoutTest, IFrame) { if (IsTestCaseDisabled()) return; - scoped_refptr server(HTTPTestServer::CreateServer(kDocRoot)); + scoped_refptr server( + HTTPTestServer::CreateServer(kDocRoot, NULL)); ASSERT_TRUE(NULL != server.get()); { -- cgit v1.1