OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "net/cert/internal/certificate_policies.h" | 5 #include "net/cert/internal/certificate_policies.h" |
6 | 6 |
7 #include "net/cert/internal/test_helpers.h" | 7 #include "net/cert/internal/test_helpers.h" |
8 #include "net/der/input.h" | 8 #include "net/der/input.h" |
9 #include "net/der/parser.h" | 9 #include "net/der/parser.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 std::vector<der::Input> policies; | 143 std::vector<der::Input> policies; |
144 EXPECT_TRUE(ParseCertificatePoliciesExtension(der::Input(&der), &policies)); | 144 EXPECT_TRUE(ParseCertificatePoliciesExtension(der::Input(&der), &policies)); |
145 ASSERT_EQ(2U, policies.size()); | 145 ASSERT_EQ(2U, policies.size()); |
146 EXPECT_EQ(der::Input(policy_1_2_3_der), policies[0]); | 146 EXPECT_EQ(der::Input(policy_1_2_3_der), policies[0]); |
147 EXPECT_EQ(der::Input(policy_1_2_4_der), policies[1]); | 147 EXPECT_EQ(der::Input(policy_1_2_4_der), policies[1]); |
148 } | 148 } |
149 | 149 |
150 // NOTE: The tests for ParseCertificatePolicies() are part of | 150 // NOTE: The tests for ParseCertificatePolicies() are part of |
151 // parsed_certificate_unittest.cc | 151 // parsed_certificate_unittest.cc |
152 | 152 |
| 153 // NOTE: The tests for ParseInhibitAnyPolicy() are part of |
| 154 // parsed_certificate_unittest.cc |
| 155 |
153 } // namespace net | 156 } // namespace net |
OLD | NEW |