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

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: unit test debugging Created 4 years, 12 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 "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 10 matching lines...) Expand all
21 #include "content/public/common/ssl_status.h" 21 #include "content/public/common/ssl_status.h"
22 #include "grit/theme_resources.h" 22 #include "grit/theme_resources.h"
23 #include "net/cert/cert_status_flags.h" 23 #include "net/cert/cert_status_flags.h"
24 #include "net/cert/x509_certificate.h" 24 #include "net/cert/x509_certificate.h"
25 #include "net/ssl/ssl_connection_status_flags.h" 25 #include "net/ssl/ssl_connection_status_flags.h"
26 #include "net/test/test_certificate_data.h" 26 #include "net/test/test_certificate_data.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
30 using content::SSLStatus; 30 using content::SSLStatus;
31 using security_state::SecurityStateModel;
31 using testing::_; 32 using testing::_;
32 using testing::AnyNumber; 33 using testing::AnyNumber;
33 using testing::Return; 34 using testing::Return;
34 using testing::SetArgPointee; 35 using testing::SetArgPointee;
35 36
36 namespace { 37 namespace {
37 38
38 // SSL cipher suite like specified in RFC5246 Appendix A.5. "The Cipher Suite". 39 // SSL cipher suite like specified in RFC5246 Appendix A.5. "The Cipher Suite".
39 // Without the CR_ prefix, this clashes with the OS X 10.8 headers. 40 // Without the CR_ prefix, this clashes with the OS X 10.8 headers.
40 int CR_TLS_RSA_WITH_AES_256_CBC_SHA256 = 0x3D; 41 int CR_TLS_RSA_WITH_AES_256_CBC_SHA256 = 0x3D;
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 717
717 TEST_F(WebsiteSettingsTest, InternalPage) { 718 TEST_F(WebsiteSettingsTest, InternalPage) {
718 SetURL("chrome://bookmarks"); 719 SetURL("chrome://bookmarks");
719 SetDefaultUIExpectations(mock_ui()); 720 SetDefaultUIExpectations(mock_ui());
720 EXPECT_EQ(WebsiteSettings::SITE_CONNECTION_STATUS_INTERNAL_PAGE, 721 EXPECT_EQ(WebsiteSettings::SITE_CONNECTION_STATUS_INTERNAL_PAGE,
721 website_settings()->site_connection_status()); 722 website_settings()->site_connection_status());
722 EXPECT_EQ(WebsiteSettings::SITE_IDENTITY_STATUS_INTERNAL_PAGE, 723 EXPECT_EQ(WebsiteSettings::SITE_IDENTITY_STATUS_INTERNAL_PAGE,
723 website_settings()->site_identity_status()); 724 website_settings()->site_identity_status());
724 EXPECT_EQ(base::string16(), website_settings()->organization_name()); 725 EXPECT_EQ(base::string16(), website_settings()->organization_name());
725 } 726 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698