Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome/browser/ssl/ssl_browser_tests.cc

Issue 2865503002: Mark SSLUITest.TestHTTPSErrorWithNoNavEntry as not flaky (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <utility> 5 #include <utility>
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 ui_test_utils::NavigateToURL(browser(), url); 1401 ui_test_utils::NavigateToURL(browser(), url);
1402 CheckAuthenticatedState(tab, AuthState::NONE); 1402 CheckAuthenticatedState(tab, AuthState::NONE);
1403 1403
1404 // Test page runs a WebSocket wss connection test. The result will be shown 1404 // Test page runs a WebSocket wss connection test. The result will be shown
1405 // as page title. 1405 // as page title.
1406 const base::string16 result = watcher.WaitAndGetTitle(); 1406 const base::string16 result = watcher.WaitAndGetTitle();
1407 EXPECT_TRUE(base::LowerCaseEqualsASCII(result, "pass")); 1407 EXPECT_TRUE(base::LowerCaseEqualsASCII(result, "pass"));
1408 } 1408 }
1409 #endif // defined(USE_NSS_CERTS) 1409 #endif // defined(USE_NSS_CERTS)
1410 1410
1411 // Flaky on CrOS http://crbug.com/92292
1412 #if defined(OS_CHROMEOS)
1413 #define MAYBE_TestHTTPSErrorWithNoNavEntry \
1414 DISABLED_TestHTTPSErrorWithNoNavEntry
1415 #else
1416 #define MAYBE_TestHTTPSErrorWithNoNavEntry TestHTTPSErrorWithNoNavEntry
1417 #endif // defined(OS_CHROMEOS)
1418
1419 // Open a page with a HTTPS error in a tab with no prior navigation (through a 1411 // Open a page with a HTTPS error in a tab with no prior navigation (through a
1420 // link with a blank target). This is to test that the lack of navigation entry 1412 // link with a blank target). This is to test that the lack of navigation entry
1421 // does not cause any problems (it was causing a crasher, see 1413 // does not cause any problems (it was causing a crasher, see
1422 // http://crbug.com/19941). 1414 // http://crbug.com/19941).
1423 IN_PROC_BROWSER_TEST_F(SSLUITest, MAYBE_TestHTTPSErrorWithNoNavEntry) { 1415 IN_PROC_BROWSER_TEST_F(SSLUITest, TestHTTPSErrorWithNoNavEntry) {
1424 ASSERT_TRUE(https_server_expired_.Start()); 1416 ASSERT_TRUE(https_server_expired_.Start());
1425 1417
1426 GURL url = https_server_expired_.GetURL("/ssl/google.htm"); 1418 const GURL url = https_server_expired_.GetURL("/ssl/google.htm");
1427 WebContents* tab2 = chrome::AddSelectedTabWithURL( 1419 WebContents* tab2 = chrome::AddSelectedTabWithURL(
1428 browser(), url, ui::PAGE_TRANSITION_TYPED); 1420 browser(), url, ui::PAGE_TRANSITION_TYPED);
1429 content::WaitForLoadStop(tab2); 1421 content::WaitForLoadStop(tab2);
1430 1422
1431 // Verify our assumption that there was no prior navigation. 1423 // Verify our assumption that there was no prior navigation.
1432 EXPECT_FALSE(chrome::CanGoBack(browser())); 1424 EXPECT_FALSE(chrome::CanGoBack(browser()));
1433 1425
1434 // We should have an interstitial page showing. 1426 // We should have an interstitial page showing.
1427 WaitForInterstitialAttach(tab2);
1435 ASSERT_TRUE(tab2->GetInterstitialPage()); 1428 ASSERT_TRUE(tab2->GetInterstitialPage());
1436 ASSERT_EQ(SSLBlockingPage::kTypeForTesting, tab2->GetInterstitialPage() 1429 ASSERT_EQ(SSLBlockingPage::kTypeForTesting, tab2->GetInterstitialPage()
1437 ->GetDelegateForTesting() 1430 ->GetDelegateForTesting()
1438 ->GetTypeForTesting()); 1431 ->GetTypeForTesting());
1439 } 1432 }
1440 1433
1441 IN_PROC_BROWSER_TEST_F(SSLUITest, TestBadHTTPSDownload) { 1434 IN_PROC_BROWSER_TEST_F(SSLUITest, TestBadHTTPSDownload) {
1442 ASSERT_TRUE(embedded_test_server()->Start()); 1435 ASSERT_TRUE(embedded_test_server()->Start());
1443 ASSERT_TRUE(https_server_expired_.Start()); 1436 ASSERT_TRUE(https_server_expired_.Start());
1444 GURL url_non_dangerous = embedded_test_server()->GetURL("/title1.html"); 1437 GURL url_non_dangerous = embedded_test_server()->GetURL("/title1.html");
(...skipping 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after
4427 4420
4428 // Visit a page over https that contains a frame with a redirect. 4421 // Visit a page over https that contains a frame with a redirect.
4429 4422
4430 // XMLHttpRequest insecure content in synchronous mode. 4423 // XMLHttpRequest insecure content in synchronous mode.
4431 4424
4432 // XMLHttpRequest insecure content in asynchronous mode. 4425 // XMLHttpRequest insecure content in asynchronous mode.
4433 4426
4434 // XMLHttpRequest over bad ssl in synchronous mode. 4427 // XMLHttpRequest over bad ssl in synchronous mode.
4435 4428
4436 // XMLHttpRequest over OK ssl in synchronous mode. 4429 // XMLHttpRequest over OK ssl in synchronous mode.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698