diff options
author | ahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 15:34:04 +0000 |
---|---|---|
committer | ahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 15:34:04 +0000 |
commit | 0c5a7e3e883ec01cbec71d6bd079bb7a0dfbb69c (patch) | |
tree | 074b02ae67f670d20588fb855c8bd41616e1fc9c /net | |
parent | 61f972be4f7409243bfd81abd41facb31f421550 (diff) | |
download | chromium_src-0c5a7e3e883ec01cbec71d6bd079bb7a0dfbb69c.zip chromium_src-0c5a7e3e883ec01cbec71d6bd079bb7a0dfbb69c.tar.gz chromium_src-0c5a7e3e883ec01cbec71d6bd079bb7a0dfbb69c.tar.bz2 |
Cleaning up flakiness of a URLSecurityManager unit test.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/2003012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54903 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/http/url_security_manager_unittest.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/net/http/url_security_manager_unittest.cc b/net/http/url_security_manager_unittest.cc index b08a7b2..7c52efd 100644 --- a/net/http/url_security_manager_unittest.cc +++ b/net/http/url_security_manager_unittest.cc @@ -43,29 +43,6 @@ const TestData kTestDataList[] = { } // namespace -// For Windows, This relies on the contents of the registry, so in theory it -// might fail. -TEST(URLSecurityManager, FLAKY_CreateNoWhitelist) { - scoped_ptr<URLSecurityManager> url_security_manager( - URLSecurityManager::Create(NULL)); - ASSERT_TRUE(url_security_manager.get()); - - for (size_t i = 0; i < arraysize(kTestDataList); ++i) { - GURL gurl(kTestDataList[i].url); - bool can_use_default = - url_security_manager->CanUseDefaultCredentials(gurl); - -#if defined(OS_WIN) - EXPECT_EQ(kTestDataList[i].succeds_in_windows_default, can_use_default) - << " Run: " << i << " URL: '" << gurl << "'"; -#else - // No whitelist means nothing can use the default. - EXPECT_FALSE(can_use_default) - << " Run: " << i << " URL: '" << gurl << "'"; -#endif // OS_WIN - } -} - TEST(URLSecurityManager, CreateWhitelist) { HttpAuthFilterWhitelist* auth_filter = new HttpAuthFilterWhitelist(); ASSERT_TRUE(auth_filter); |