diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 22:18:13 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 22:18:13 +0000 |
commit | c82eaa5262da607ff04069cefcf67df4cf5bbcb1 (patch) | |
tree | 73c087115c2aace336505fd931dca1a6043ebdf7 /chrome/browser/ssl | |
parent | 3b1ea24972af975f96f7bdf6040fbc5048ea8b6d (diff) | |
download | chromium_src-c82eaa5262da607ff04069cefcf67df4cf5bbcb1.zip chromium_src-c82eaa5262da607ff04069cefcf67df4cf5bbcb1.tar.gz chromium_src-c82eaa5262da607ff04069cefcf67df4cf5bbcb1.tar.bz2 |
Flaky tests on linux/view/64bit builds.
Also updated browser_tests to use #define instead of #if/else, like other tests.
BUG=28808
TEST=None
Review URL: http://codereview.chromium.org/442012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl')
-rw-r--r-- | chrome/browser/ssl/ssl_browser_tests.cc | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/chrome/browser/ssl/ssl_browser_tests.cc b/chrome/browser/ssl/ssl_browser_tests.cc index e624856..76b6a26 100644 --- a/chrome/browser/ssl/ssl_browser_tests.cc +++ b/chrome/browser/ssl/ssl_browser_tests.cc @@ -220,19 +220,19 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, TestHTTPSExpiredCertAndDontProceed) { CheckUnauthenticatedState(tab); } -// Open a page with a HTTPS error in a tab with no prior navigation (through a -// link with a blank target). This is to test that the lack of navigation entry -// does not cause any problems (it was causing a crasher, see -// http://crbug.com/19941). -#if !defined(OS_LINUX) || !defined(TOOLKIT_VIEWS) -IN_PROC_BROWSER_TEST_F(SSLUITest, TestHTTPSErrorWithNoNavEntry) { -#else +#if defined(OS_LINUX) && defined(TOOLKIT_VIEWS) // TODO(jcampan|oshima): On linux/views, the WaitForLoadStop call // below sometimes waits forever because LOAD_STOP notification can // happen before WaitLorLoadStop is called. Marking this test as Fleaky. // See http://crbug/28098. -IN_PROC_BROWSER_TEST_F(SSLUITest, FLAKY_TestHTTPSErrorWithNoNavEntry) { +#define TestHTTPSErrorWithNoNavEntry FLAKY_TestHTTPSErrorWithNoNavEntry #endif + +// Open a page with a HTTPS error in a tab with no prior navigation (through a +// link with a blank target). This is to test that the lack of navigation entry +// does not cause any problems (it was causing a crasher, see +// http://crbug.com/19941). +IN_PROC_BROWSER_TEST_F(SSLUITest, TestHTTPSErrorWithNoNavEntry) { scoped_refptr<HTTPTestServer> http_server = PlainServer(); ASSERT_TRUE(http_server.get() != NULL); scoped_refptr<HTTPSTestServer> bad_https_server = BadCertServer(); @@ -257,13 +257,11 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, FLAKY_TestHTTPSErrorWithNoNavEntry) { EXPECT_EQ(2, browser()->tab_count()); EXPECT_EQ(1, browser()->selected_index()); -#if !defined(OS_LINUX) || !defined(TOOLKIT_VIEWS) // Since the navigation was initiated by the renderer (when we clicked on the // link) and since the main page network request failed, we won't get a // navigation entry committed. So we'll just wait for the load to stop. ui_test_utils::WaitForLoadStop( &(browser()->GetSelectedTabContents()->controller())); -#endif // We should have an interstitial page showing. ASSERT_TRUE(browser()->GetSelectedTabContents()->interstitial_page()); |