| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chromeos/network/client_cert_resolver.h" | 4 #include "chromeos/network/client_cert_resolver.h" |
| 5 | 5 |
| 6 #include <cert.h> | 6 #include <cert.h> |
| 7 #include <pk11pub.h> | 7 #include <pk11pub.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chromeos/dbus/shill_profile_client.h" | 24 #include "chromeos/dbus/shill_profile_client.h" |
| 25 #include "chromeos/dbus/shill_service_client.h" | 25 #include "chromeos/dbus/shill_service_client.h" |
| 26 #include "chromeos/network/managed_network_configuration_handler_impl.h" | 26 #include "chromeos/network/managed_network_configuration_handler_impl.h" |
| 27 #include "chromeos/network/network_configuration_handler.h" | 27 #include "chromeos/network/network_configuration_handler.h" |
| 28 #include "chromeos/network/network_profile_handler.h" | 28 #include "chromeos/network/network_profile_handler.h" |
| 29 #include "chromeos/network/network_state_handler.h" | 29 #include "chromeos/network/network_state_handler.h" |
| 30 #include "components/onc/onc_constants.h" | 30 #include "components/onc/onc_constants.h" |
| 31 #include "crypto/scoped_nss_types.h" | 31 #include "crypto/scoped_nss_types.h" |
| 32 #include "crypto/scoped_test_nss_db.h" | 32 #include "crypto/scoped_test_nss_db.h" |
| 33 #include "net/base/net_errors.h" | 33 #include "net/base/net_errors.h" |
| 34 #include "net/base/test_data_directory.h" | |
| 35 #include "net/cert/nss_cert_database_chromeos.h" | 34 #include "net/cert/nss_cert_database_chromeos.h" |
| 36 #include "net/cert/x509_certificate.h" | 35 #include "net/cert/x509_certificate.h" |
| 37 #include "net/test/cert_test_util.h" | 36 #include "net/test/cert_test_util.h" |
| 37 #include "net/test/test_data_directory.h" |
| 38 #include "testing/gtest/include/gtest/gtest.h" | 38 #include "testing/gtest/include/gtest/gtest.h" |
| 39 #include "third_party/cros_system_api/dbus/service_constants.h" | 39 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 40 | 40 |
| 41 namespace chromeos { | 41 namespace chromeos { |
| 42 | 42 |
| 43 namespace { | 43 namespace { |
| 44 | 44 |
| 45 const char* kWifiStub = "wifi_stub"; | 45 const char* kWifiStub = "wifi_stub"; |
| 46 const char* kWifiSSID = "wifi_ssid"; | 46 const char* kWifiSSID = "wifi_ssid"; |
| 47 const char* kUserProfilePath = "user_profile"; | 47 const char* kUserProfilePath = "user_profile"; |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 // substituted into the shill service entry. | 437 // substituted into the shill service entry. |
| 438 SetupPolicyMatchingIssuerPEM("upn-${CERT_SAN_UPN}-suffix"); | 438 SetupPolicyMatchingIssuerPEM("upn-${CERT_SAN_UPN}-suffix"); |
| 439 base::RunLoop().RunUntilIdle(); | 439 base::RunLoop().RunUntilIdle(); |
| 440 | 440 |
| 441 GetServiceProperty(shill::kEapIdentityProperty, &identity); | 441 GetServiceProperty(shill::kEapIdentityProperty, &identity); |
| 442 EXPECT_EQ("upn-santest@ad.corp.example.com-suffix", identity); | 442 EXPECT_EQ("upn-santest@ad.corp.example.com-suffix", identity); |
| 443 EXPECT_EQ(2, network_properties_changed_count_); | 443 EXPECT_EQ(2, network_properties_changed_count_); |
| 444 } | 444 } |
| 445 | 445 |
| 446 } // namespace chromeos | 446 } // namespace chromeos |
| OLD | NEW |