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

Side by Side Diff: chrome/browser/captive_portal/captive_portal_browsertest.cc

Issue 2603433002: Move SecurityInterstitialPage into component (Closed)
Patch Set: missed some changes in rebase Created 3 years, 11 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/interstitials/chrome_controller_client.h » ('j') | 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 <map> 5 #include <map>
6 #include <memory> 6 #include <memory>
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/base_switches.h" 12 #include "base/base_switches.h"
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
19 #include "base/path_service.h" 19 #include "base/path_service.h"
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "base/values.h" 21 #include "base/values.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "chrome/browser/captive_portal/captive_portal_service.h" 23 #include "chrome/browser/captive_portal/captive_portal_service.h"
24 #include "chrome/browser/captive_portal/captive_portal_service_factory.h" 24 #include "chrome/browser/captive_portal/captive_portal_service_factory.h"
25 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" 25 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h"
26 #include "chrome/browser/captive_portal/captive_portal_tab_reloader.h" 26 #include "chrome/browser/captive_portal/captive_portal_tab_reloader.h"
27 #include "chrome/browser/chrome_notification_types.h" 27 #include "chrome/browser/chrome_notification_types.h"
28 #include "chrome/browser/interstitials/security_interstitial_page.h"
29 #include "chrome/browser/net/url_request_mock_util.h" 28 #include "chrome/browser/net/url_request_mock_util.h"
30 #include "chrome/browser/profiles/profile.h" 29 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/browser/ssl/captive_portal_blocking_page.h" 30 #include "chrome/browser/ssl/captive_portal_blocking_page.h"
32 #include "chrome/browser/ssl/ssl_blocking_page.h" 31 #include "chrome/browser/ssl/ssl_blocking_page.h"
33 #include "chrome/browser/ssl/ssl_error_handler.h" 32 #include "chrome/browser/ssl/ssl_error_handler.h"
34 #include "chrome/browser/ui/browser.h" 33 #include "chrome/browser/ui/browser.h"
35 #include "chrome/browser/ui/browser_commands.h" 34 #include "chrome/browser/ui/browser_commands.h"
36 #include "chrome/browser/ui/browser_finder.h" 35 #include "chrome/browser/ui/browser_finder.h"
37 #include "chrome/browser/ui/browser_navigator_params.h" 36 #include "chrome/browser/ui/browser_navigator_params.h"
38 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" 37 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h"
39 #include "chrome/browser/ui/tabs/tab_strip_model.h" 38 #include "chrome/browser/ui/tabs/tab_strip_model.h"
40 #include "chrome/common/chrome_paths.h" 39 #include "chrome/common/chrome_paths.h"
41 #include "chrome/common/pref_names.h" 40 #include "chrome/common/pref_names.h"
42 #include "chrome/test/base/in_process_browser_test.h" 41 #include "chrome/test/base/in_process_browser_test.h"
43 #include "chrome/test/base/ui_test_utils.h" 42 #include "chrome/test/base/ui_test_utils.h"
44 #include "components/prefs/pref_service.h" 43 #include "components/prefs/pref_service.h"
44 #include "components/security_interstitials/content/security_interstitial_page.h "
45 #include "content/public/browser/browser_thread.h" 45 #include "content/public/browser/browser_thread.h"
46 #include "content/public/browser/interstitial_page.h" 46 #include "content/public/browser/interstitial_page.h"
47 #include "content/public/browser/interstitial_page_delegate.h" 47 #include "content/public/browser/interstitial_page_delegate.h"
48 #include "content/public/browser/navigation_controller.h" 48 #include "content/public/browser/navigation_controller.h"
49 #include "content/public/browser/navigation_entry.h" 49 #include "content/public/browser/navigation_entry.h"
50 #include "content/public/browser/notification_observer.h" 50 #include "content/public/browser/notification_observer.h"
51 #include "content/public/browser/notification_registrar.h" 51 #include "content/public/browser/notification_registrar.h"
52 #include "content/public/browser/notification_service.h" 52 #include "content/public/browser/notification_service.h"
53 #include "content/public/browser/notification_types.h" 53 #include "content/public/browser/notification_types.h"
54 #include "content/public/browser/render_frame_host.h" 54 #include "content/public/browser/render_frame_host.h"
(...skipping 2784 matching lines...) Expand 10 before | Expand all | Expand 10 after
2839 2839
2840 EXPECT_EQ(CaptivePortalTabReloader::STATE_NEEDS_RELOAD, 2840 EXPECT_EQ(CaptivePortalTabReloader::STATE_NEEDS_RELOAD,
2841 GetStateOfTabReloaderAt(browser(), broken_tab_index)); 2841 GetStateOfTabReloaderAt(browser(), broken_tab_index));
2842 2842
2843 WaitForInterstitialAttach(broken_tab_contents); 2843 WaitForInterstitialAttach(broken_tab_contents);
2844 portal_observer.WaitForResults(1); 2844 portal_observer.WaitForResults(1);
2845 2845
2846 EXPECT_EQ(SSLBlockingPage::kTypeForTesting, 2846 EXPECT_EQ(SSLBlockingPage::kTypeForTesting,
2847 GetInterstitialType(broken_tab_contents)); 2847 GetInterstitialType(broken_tab_contents));
2848 } 2848 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/interstitials/chrome_controller_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698