Commit fbbed0ab authored by asargent@chromium.org's avatar asargent@chromium.org

Added logging to ExtensionWebstorePrivateBrowserTest.BrowserLogin

This test has failed a few times on the waterfall lately, and this will help
me understand what's going on.

BUG=91753
TEST=none

Review URL: http://codereview.chromium.org/7511028

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95537 0039d316-1c4b-4281-b951-d872f2087c98
parent b9cf9558
...@@ -181,17 +181,26 @@ class ExtensionWebstorePrivateBrowserTest : public ExtensionBrowserTest { ...@@ -181,17 +181,26 @@ class ExtensionWebstorePrivateBrowserTest : public ExtensionBrowserTest {
std::string test_url_base_; std::string test_url_base_;
}; };
// TODO(asargent) I've added some extra logging to this test since we've seen a
// few failures on the bots lately. See crbug.com/91753 for details.
IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateBrowserTest, BrowserLogin) { IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateBrowserTest, BrowserLogin) {
LOG(INFO) << "Adding rule to host resolver";
host_resolver()->AddRule(kTestUrlHostname, "127.0.0.1"); host_resolver()->AddRule(kTestUrlHostname, "127.0.0.1");
LOG(INFO) << "Starting test server";
ASSERT_TRUE(test_server()->Start()); ASSERT_TRUE(test_server()->Start());
LOG(INFO) << "expect_nonempty.html";
RunLoginTest("browser_login/expect_nonempty.html", RunLoginTest("browser_login/expect_nonempty.html",
"foo@bar.com", false, ""); "foo@bar.com", false, "");
LOG(INFO) << "prompt_no_preferred.html";
RunLoginTest("browser_login/prompt_no_preferred.html", "", true, ""); RunLoginTest("browser_login/prompt_no_preferred.html", "", true, "");
LOG(INFO) << "prompt_preferred.html";
RunLoginTest("browser_login/prompt_preferred.html", "", true, "foo@bar.com"); RunLoginTest("browser_login/prompt_preferred.html", "", true, "foo@bar.com");
LOG(INFO) << "prompt_login_fails.html";
RunLoginTest("browser_login/prompt_login_fails.html", RunLoginTest("browser_login/prompt_login_fails.html",
"", false, "foo@bar.com"); "", false, "foo@bar.com");
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment