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 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/json/json_reader.h" | 15 #include "base/json/json_reader.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/message_loop/message_loop.h" |
17 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
18 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
19 #include "base/test/scoped_task_scheduler.h" | 20 #include "base/test/scoped_task_scheduler.h" |
20 #include "base/test/simple_test_clock.h" | 21 #include "base/test/simple_test_clock.h" |
21 #include "base/values.h" | 22 #include "base/values.h" |
22 #include "chromeos/cert_loader.h" | 23 #include "chromeos/cert_loader.h" |
23 #include "chromeos/dbus/dbus_thread_manager.h" | 24 #include "chromeos/dbus/dbus_thread_manager.h" |
24 #include "chromeos/dbus/shill_manager_client.h" | 25 #include "chromeos/dbus/shill_manager_client.h" |
25 #include "chromeos/dbus/shill_profile_client.h" | 26 #include "chromeos/dbus/shill_profile_client.h" |
26 #include "chromeos/dbus/shill_service_client.h" | 27 #include "chromeos/dbus/shill_service_client.h" |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 SetupPolicyMatchingIssuerPEM(onc::ONC_SOURCE_USER_POLICY, | 592 SetupPolicyMatchingIssuerPEM(onc::ONC_SOURCE_USER_POLICY, |
592 "upn-${CERT_SAN_UPN}-suffix"); | 593 "upn-${CERT_SAN_UPN}-suffix"); |
593 base::RunLoop().RunUntilIdle(); | 594 base::RunLoop().RunUntilIdle(); |
594 | 595 |
595 GetServiceProperty(shill::kEapIdentityProperty, &identity); | 596 GetServiceProperty(shill::kEapIdentityProperty, &identity); |
596 EXPECT_EQ("upn-santest@ad.corp.example.com-suffix", identity); | 597 EXPECT_EQ("upn-santest@ad.corp.example.com-suffix", identity); |
597 EXPECT_EQ(2, network_properties_changed_count_); | 598 EXPECT_EQ(2, network_properties_changed_count_); |
598 } | 599 } |
599 | 600 |
600 } // namespace chromeos | 601 } // namespace chromeos |
OLD | NEW |