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 "chrome/browser/captive_portal/captive_portal_tab_reloader.h" | 5 #include "chrome/browser/captive_portal/captive_portal_tab_reloader.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "chrome/browser/captive_portal/captive_portal_service.h" | 9 #include "chrome/browser/captive_portal/captive_portal_service.h" |
10 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 10 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
11 #include "content/public/browser/browser_thread.h" | |
12 #include "content/public/browser/interstitial_page.h" | 11 #include "content/public/browser/interstitial_page.h" |
13 #include "content/public/browser/interstitial_page_delegate.h" | 12 #include "content/public/browser/interstitial_page_delegate.h" |
14 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
15 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
16 #include "net/cert/cert_status_flags.h" | 15 #include "net/cert/cert_status_flags.h" |
17 #include "net/ssl/ssl_info.h" | 16 #include "net/ssl/ssl_info.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "url/gurl.h" | 19 #include "url/gurl.h" |
21 | 20 |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 // There should be no captive portal check pending after the redirect. | 674 // There should be no captive portal check pending after the redirect. |
676 base::MessageLoop::current()->RunUntilIdle(); | 675 base::MessageLoop::current()->RunUntilIdle(); |
677 | 676 |
678 // Logging in shouldn't do anything. | 677 // Logging in shouldn't do anything. |
679 tab_reloader().OnCaptivePortalResults(RESULT_BEHIND_CAPTIVE_PORTAL, | 678 tab_reloader().OnCaptivePortalResults(RESULT_BEHIND_CAPTIVE_PORTAL, |
680 RESULT_INTERNET_CONNECTED); | 679 RESULT_INTERNET_CONNECTED); |
681 EXPECT_EQ(CaptivePortalTabReloader::STATE_NONE, tab_reloader().state()); | 680 EXPECT_EQ(CaptivePortalTabReloader::STATE_NONE, tab_reloader().state()); |
682 } | 681 } |
683 | 682 |
684 } // namespace captive_portal | 683 } // namespace captive_portal |
OLD | NEW |