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

Unified Diff: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller_unittest.mm

Issue 2285683003: Material Page Info (Mac, 2/3): Update security section. (Closed)
Patch Set: Remove obsolete tests. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller_unittest.mm
index e5b7e6f77e27a9d34a047287bf281e3e1cd4b3f4..911319d707a23427a7f085959319c0e0d5df02a7 100644
--- a/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller_unittest.mm
@@ -206,35 +206,6 @@ class WebsiteSettingsBubbleControllerTest : public CocoaTest {
NSWindow* window_; // Weak, owned by controller.
};
-TEST_F(WebsiteSettingsBubbleControllerTest, BasicIdentity) {
- WebsiteSettingsUI::IdentityInfo info;
- info.site_identity = std::string("nhl.com");
- info.identity_status = WebsiteSettings::SITE_IDENTITY_STATUS_UNKNOWN;
-
- CreateBubble();
-
- // Test setting the site identity.
- bridge_->SetIdentityInfo(const_cast<WebsiteSettingsUI::IdentityInfo&>(info));
- NSTextField* identity_field = FindTextField(TEXT_EQUAL, @"nhl.com");
- ASSERT_TRUE(identity_field != nil);
-
- // Test changing the site identity, and ensure that the UI is updated.
- info.site_identity = std::string("google.com");
- bridge_->SetIdentityInfo(const_cast<WebsiteSettingsUI::IdentityInfo&>(info));
- EXPECT_EQ(identity_field, FindTextField(TEXT_EQUAL, @"google.com"));
-
- // Find the identity status field.
- NSTextField* identity_status_field =
- FindTextField(TEXT_NOT_EQUAL, @"google.com");
- ASSERT_NE(identity_field, identity_status_field);
-
- // Ensure the text of the identity status field changes when the status does.
- NSString* status = [identity_status_field stringValue];
- info.identity_status = WebsiteSettings::SITE_IDENTITY_STATUS_CERT;
- bridge_->SetIdentityInfo(const_cast<WebsiteSettingsUI::IdentityInfo&>(info));
- EXPECT_NSNE(status, [identity_status_field stringValue]);
-}
-
TEST_F(WebsiteSettingsBubbleControllerTest, SecurityDetailsButton) {
WebsiteSettingsUI::IdentityInfo info;
info.site_identity = std::string("example.com");
« no previous file with comments | « chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698