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

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

Issue 1539043002: Pull SecurityStateModel out into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/ui/website_settings/website_settings.cc ('k') | chrome/chrome.gyp » ('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 "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"
(...skipping 11 matching lines...) Expand all
22 #include "content/public/common/ssl_status.h" 22 #include "content/public/common/ssl_status.h"
23 #include "grit/theme_resources.h" 23 #include "grit/theme_resources.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;
32 using security_state::SecurityStateModel;
32 using testing::_; 33 using testing::_;
33 using testing::AnyNumber; 34 using testing::AnyNumber;
34 using testing::Return; 35 using testing::Return;
35 using testing::SetArgPointee; 36 using testing::SetArgPointee;
36 37
37 namespace { 38 namespace {
38 39
39 // SSL cipher suite like specified in RFC5246 Appendix A.5. "The Cipher Suite". 40 // SSL cipher suite like specified in RFC5246 Appendix A.5. "The Cipher Suite".
40 // Without the CR_ prefix, this clashes with the OS X 10.8 headers. 41 // Without the CR_ prefix, this clashes with the OS X 10.8 headers.
41 int CR_TLS_RSA_WITH_AES_256_CBC_SHA256 = 0x3D; 42 int CR_TLS_RSA_WITH_AES_256_CBC_SHA256 = 0x3D;
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 718
718 TEST_F(WebsiteSettingsTest, InternalPage) { 719 TEST_F(WebsiteSettingsTest, InternalPage) {
719 SetURL("chrome://bookmarks"); 720 SetURL("chrome://bookmarks");
720 SetDefaultUIExpectations(mock_ui()); 721 SetDefaultUIExpectations(mock_ui());
721 EXPECT_EQ(WebsiteSettings::SITE_CONNECTION_STATUS_INTERNAL_PAGE, 722 EXPECT_EQ(WebsiteSettings::SITE_CONNECTION_STATUS_INTERNAL_PAGE,
722 website_settings()->site_connection_status()); 723 website_settings()->site_connection_status());
723 EXPECT_EQ(WebsiteSettings::SITE_IDENTITY_STATUS_INTERNAL_PAGE, 724 EXPECT_EQ(WebsiteSettings::SITE_IDENTITY_STATUS_INTERNAL_PAGE,
724 website_settings()->site_identity_status()); 725 website_settings()->site_identity_status());
725 EXPECT_EQ(base::string16(), website_settings()->organization_name()); 726 EXPECT_EQ(base::string16(), website_settings()->organization_name());
726 } 727 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698