| 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 <list> | 5 #include <list> |
| 6 | 6 |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "chrome/browser/interstitials/chrome_controller_client.h" | 8 #include "chrome/browser/interstitials/chrome_controller_client.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" | 10 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" |
| 11 #include "chrome/browser/safe_browsing/test_safe_browsing_service.h" | 11 #include "chrome/browser/safe_browsing/test_safe_browsing_service.h" |
| 12 #include "chrome/browser/safe_browsing/ui_manager.h" | 12 #include "chrome/browser/safe_browsing/ui_manager.h" |
| 13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
| 15 #include "chrome/test/base/testing_browser_process.h" | 15 #include "chrome/test/base/testing_browser_process.h" |
| 16 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
| 17 #include "components/grit/components_resources.h" | |
| 18 #include "components/prefs/pref_service.h" | 17 #include "components/prefs/pref_service.h" |
| 19 #include "components/safe_browsing/browser/threat_details.h" | 18 #include "components/safe_browsing/browser/threat_details.h" |
| 20 #include "components/safe_browsing/common/safe_browsing_prefs.h" | 19 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
| 21 #include "components/security_interstitials/core/safe_browsing_quiet_error_ui.h" | 20 #include "components/security_interstitials/core/safe_browsing_quiet_error_ui.h" |
| 22 #include "components/strings/grit/components_strings.h" | 21 #include "components/strings/grit/components_strings.h" |
| 23 #include "content/public/browser/interstitial_page.h" | 22 #include "content/public/browser/interstitial_page.h" |
| 24 #include "content/public/browser/navigation_entry.h" | 23 #include "content/public/browser/navigation_entry.h" |
| 25 #include "content/public/browser/render_process_host.h" | 24 #include "content/public/browser/render_process_host.h" |
| 26 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
| 27 #include "content/public/test/web_contents_tester.h" | 26 #include "content/public/test/web_contents_tester.h" |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 EXPECT_TRUE(sb_interstitial); | 1028 EXPECT_TRUE(sb_interstitial); |
| 1030 | 1029 |
| 1031 sb_interstitial->SetGiantWebView(); | 1030 sb_interstitial->SetGiantWebView(); |
| 1032 base::DictionaryValue load_time_data = sb_interstitial->GetUIStrings(); | 1031 base::DictionaryValue load_time_data = sb_interstitial->GetUIStrings(); |
| 1033 bool is_giant; | 1032 bool is_giant; |
| 1034 load_time_data.GetBoolean("is_giant", &is_giant); | 1033 load_time_data.GetBoolean("is_giant", &is_giant); |
| 1035 EXPECT_TRUE(is_giant); | 1034 EXPECT_TRUE(is_giant); |
| 1036 } | 1035 } |
| 1037 | 1036 |
| 1038 } // namespace safe_browsing | 1037 } // namespace safe_browsing |
| OLD | NEW |