| 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 "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "crypto/scoped_test_nss_chromeos_user.h" | 27 #include "crypto/scoped_test_nss_chromeos_user.h" |
| 28 #include "net/base/crypto_module.h" | 28 #include "net/base/crypto_module.h" |
| 29 #include "net/base/net_errors.h" | 29 #include "net/base/net_errors.h" |
| 30 #include "net/base/test_data_directory.h" | 30 #include "net/base/test_data_directory.h" |
| 31 #include "net/cert/nss_cert_database_chromeos.h" | 31 #include "net/cert/nss_cert_database_chromeos.h" |
| 32 #include "net/cert/x509_certificate.h" | 32 #include "net/cert/x509_certificate.h" |
| 33 #include "net/test/cert_test_util.h" | 33 #include "net/test/cert_test_util.h" |
| 34 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
| 35 #include "third_party/cros_system_api/dbus/service_constants.h" | 35 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 36 | 36 |
| 37 // http://crbug.com/418369 |
| 38 #ifdef NDEBUG |
| 39 |
| 37 namespace chromeos { | 40 namespace chromeos { |
| 38 | 41 |
| 39 namespace { | 42 namespace { |
| 40 | 43 |
| 41 const char* kWifiStub = "wifi_stub"; | 44 const char* kWifiStub = "wifi_stub"; |
| 42 const char* kWifiSSID = "wifi_ssid"; | 45 const char* kWifiSSID = "wifi_ssid"; |
| 43 const char* kUserProfilePath = "user_profile"; | 46 const char* kUserProfilePath = "user_profile"; |
| 44 const char* kUserHash = "user_hash"; | 47 const char* kUserHash = "user_hash"; |
| 45 | 48 |
| 46 } // namespace | 49 } // namespace |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 base::RunLoop().RunUntilIdle(); | 314 base::RunLoop().RunUntilIdle(); |
| 312 | 315 |
| 313 // Verify that the resolver positively matched the pattern in the policy with | 316 // Verify that the resolver positively matched the pattern in the policy with |
| 314 // the test client cert and configured the network. | 317 // the test client cert and configured the network. |
| 315 std::string pkcs11_id; | 318 std::string pkcs11_id; |
| 316 GetClientCertProperties(&pkcs11_id); | 319 GetClientCertProperties(&pkcs11_id); |
| 317 EXPECT_EQ(test_cert_id_, pkcs11_id); | 320 EXPECT_EQ(test_cert_id_, pkcs11_id); |
| 318 } | 321 } |
| 319 | 322 |
| 320 } // namespace chromeos | 323 } // namespace chromeos |
| 324 |
| 325 #endif |
| OLD | NEW |