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

Side by Side Diff: chrome/browser/ui/website_settings/website_settings_unittest.cc

Issue 2397273002: Show a custom page info bubble for chrome-devtools:// URLs (Closed)
Patch Set: Fix mac build Created 4 years, 2 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
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 "chrome/browser/ui/website_settings/website_settings.h" 5 #include "chrome/browser/ui/website_settings/website_settings.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 858
859 TEST_F(WebsiteSettingsTest, AboutBlankPage) { 859 TEST_F(WebsiteSettingsTest, AboutBlankPage) {
860 SetURL("about:blank"); 860 SetURL("about:blank");
861 SetDefaultUIExpectations(mock_ui()); 861 SetDefaultUIExpectations(mock_ui());
862 EXPECT_EQ(WebsiteSettings::SITE_CONNECTION_STATUS_UNENCRYPTED, 862 EXPECT_EQ(WebsiteSettings::SITE_CONNECTION_STATUS_UNENCRYPTED,
863 website_settings()->site_connection_status()); 863 website_settings()->site_connection_status());
864 EXPECT_EQ(WebsiteSettings::SITE_IDENTITY_STATUS_NO_CERT, 864 EXPECT_EQ(WebsiteSettings::SITE_IDENTITY_STATUS_NO_CERT,
865 website_settings()->site_identity_status()); 865 website_settings()->site_identity_status());
866 EXPECT_EQ(base::string16(), website_settings()->organization_name()); 866 EXPECT_EQ(base::string16(), website_settings()->organization_name());
867 } 867 }
868
869 TEST_F(WebsiteSettingsTest, InternalPage) {
870 SetURL("chrome://bookmarks");
elawrence 2016/10/07 21:04:01 Was this test removed because it's obsoleted by th
meacer 2016/10/10 18:09:19 I removed it because I thought it would never be p
871 SetDefaultUIExpectations(mock_ui());
872 EXPECT_EQ(WebsiteSettings::SITE_CONNECTION_STATUS_INTERNAL_PAGE,
873 website_settings()->site_connection_status());
874 EXPECT_EQ(WebsiteSettings::SITE_IDENTITY_STATUS_INTERNAL_PAGE,
875 website_settings()->site_identity_status());
876 EXPECT_EQ(base::string16(), website_settings()->organization_name());
877 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698