OLD | NEW |
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 <map> | 5 #include <map> |
6 #include <set> | 6 #include <set> |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1880 IN_PROC_BROWSER_TEST_F(CaptivePortalBrowserTest, | 1880 IN_PROC_BROWSER_TEST_F(CaptivePortalBrowserTest, |
1881 NavigateLoadingTabToTimeoutSingleSite) { | 1881 NavigateLoadingTabToTimeoutSingleSite) { |
1882 RunNavigateLoadingTabToTimeoutTest( | 1882 RunNavigateLoadingTabToTimeoutTest( |
1883 browser(), | 1883 browser(), |
1884 GURL(kMockHttpsUrl), | 1884 GURL(kMockHttpsUrl), |
1885 GURL(kMockHttpsUrl), | 1885 GURL(kMockHttpsUrl), |
1886 GURL(kMockHttpsUrl)); | 1886 GURL(kMockHttpsUrl)); |
1887 } | 1887 } |
1888 | 1888 |
1889 // Fails on Windows only, mostly on Win7. http://crbug.com/170033 | 1889 // Fails on Windows only, mostly on Win7. http://crbug.com/170033 |
1890 #if defined(OS_WIN) | 1890 // Fails on Mac with assert. http://crbug.com/236118 |
| 1891 #if defined(OS_WIN) || defined(OS_MACOSX) |
1891 #define MAYBE_NavigateLoadingTabToTimeoutTwoSites \ | 1892 #define MAYBE_NavigateLoadingTabToTimeoutTwoSites \ |
1892 DISABLED_NavigateLoadingTabToTimeoutTwoSites | 1893 DISABLED_NavigateLoadingTabToTimeoutTwoSites |
1893 #else | 1894 #else |
1894 #define MAYBE_NavigateLoadingTabToTimeoutTwoSites \ | 1895 #define MAYBE_NavigateLoadingTabToTimeoutTwoSites \ |
1895 NavigateLoadingTabToTimeoutTwoSites | 1896 NavigateLoadingTabToTimeoutTwoSites |
1896 #endif | 1897 #endif |
1897 | 1898 |
1898 // Checks that captive portal detection triggers correctly when a same-site | 1899 // Checks that captive portal detection triggers correctly when a same-site |
1899 // navigation is cancelled by a navigation to another site. | 1900 // navigation is cancelled by a navigation to another site. |
1900 IN_PROC_BROWSER_TEST_F(CaptivePortalBrowserTest, | 1901 IN_PROC_BROWSER_TEST_F(CaptivePortalBrowserTest, |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2197 base::Bind(&AddHstsHost, | 2198 base::Bind(&AddHstsHost, |
2198 make_scoped_refptr(browser()->profile()->GetRequestContext()), | 2199 make_scoped_refptr(browser()->profile()->GetRequestContext()), |
2199 http_timeout_url.host())); | 2200 http_timeout_url.host())); |
2200 | 2201 |
2201 SlowLoadBehindCaptivePortal(browser(), true, http_timeout_url, 1, 1); | 2202 SlowLoadBehindCaptivePortal(browser(), true, http_timeout_url, 1, 1); |
2202 Login(browser(), 1, 0); | 2203 Login(browser(), 1, 0); |
2203 FailLoadsAfterLogin(browser(), 1); | 2204 FailLoadsAfterLogin(browser(), 1); |
2204 } | 2205 } |
2205 | 2206 |
2206 } // namespace captive_portal | 2207 } // namespace captive_portal |
OLD | NEW |