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/ui/website_settings/website_settings.h" | 5 #include "chrome/browser/ui/website_settings/website_settings.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/content_settings/content_settings_provider.h" | 11 #include "chrome/browser/content_settings/content_settings_provider.h" |
12 #include "chrome/browser/content_settings/content_settings_utils.h" | 12 #include "chrome/browser/content_settings/content_settings_utils.h" |
13 #include "chrome/browser/content_settings/host_content_settings_map.h" | 13 #include "chrome/browser/content_settings/host_content_settings_map.h" |
14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
15 #include "chrome/browser/infobars/infobar.h" | |
16 #include "chrome/browser/infobars/infobar_service.h" | 15 #include "chrome/browser/infobars/infobar_service.h" |
17 #include "chrome/browser/ui/website_settings/website_settings_ui.h" | 16 #include "chrome/browser/ui/website_settings/website_settings_ui.h" |
18 #include "chrome/common/content_settings.h" | 17 #include "chrome/common/content_settings.h" |
19 #include "chrome/common/content_settings_types.h" | 18 #include "chrome/common/content_settings_types.h" |
20 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 19 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
21 #include "chrome/test/base/testing_profile.h" | 20 #include "chrome/test/base/testing_profile.h" |
| 21 #include "components/infobars/core/infobar.h" |
22 #include "content/public/browser/cert_store.h" | 22 #include "content/public/browser/cert_store.h" |
23 #include "content/public/common/ssl_status.h" | 23 #include "content/public/common/ssl_status.h" |
24 #include "net/cert/cert_status_flags.h" | 24 #include "net/cert/cert_status_flags.h" |
25 #include "net/cert/x509_certificate.h" | 25 #include "net/cert/x509_certificate.h" |
26 #include "net/ssl/ssl_connection_status_flags.h" | 26 #include "net/ssl/ssl_connection_status_flags.h" |
27 #include "net/test/test_certificate_data.h" | 27 #include "net/test/test_certificate_data.h" |
28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 | 30 |
31 using content::SSLStatus; | 31 using content::SSLStatus; |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 EXPECT_CALL(*mock_ui(), SetSelectedTab( | 387 EXPECT_CALL(*mock_ui(), SetSelectedTab( |
388 WebsiteSettingsUI::TAB_ID_PERMISSIONS)); | 388 WebsiteSettingsUI::TAB_ID_PERMISSIONS)); |
389 EXPECT_EQ(0u, infobar_service()->infobar_count()); | 389 EXPECT_EQ(0u, infobar_service()->infobar_count()); |
390 website_settings()->OnSitePermissionChanged( | 390 website_settings()->OnSitePermissionChanged( |
391 CONTENT_SETTINGS_TYPE_GEOLOCATION, CONTENT_SETTING_ALLOW); | 391 CONTENT_SETTINGS_TYPE_GEOLOCATION, CONTENT_SETTING_ALLOW); |
392 website_settings()->OnUIClosing(); | 392 website_settings()->OnUIClosing(); |
393 ASSERT_EQ(1u, infobar_service()->infobar_count()); | 393 ASSERT_EQ(1u, infobar_service()->infobar_count()); |
394 | 394 |
395 infobar_service()->RemoveInfoBar(infobar_service()->infobar_at(0)); | 395 infobar_service()->RemoveInfoBar(infobar_service()->infobar_at(0)); |
396 } | 396 } |
OLD | NEW |