| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/cert_issuer_source_static.h" | 5 #include "net/cert/internal/cert_issuer_source_static.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "net/cert/internal/parsed_certificate.h" | 8 #include "net/cert/internal/parsed_certificate.h" |
| 9 #include "net/cert/internal/test_helpers.h" | 9 #include "net/cert/internal/test_helpers.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 ASSERT_EQ(1U, issuers.size()); | 126 ASSERT_EQ(1U, issuers.size()); |
| 127 EXPECT_TRUE(issuers[0] == root_); | 127 EXPECT_TRUE(issuers[0] == root_); |
| 128 } | 128 } |
| 129 | 129 |
| 130 // CertIssuerSourceStatic never returns results asynchronously. | 130 // CertIssuerSourceStatic never returns results asynchronously. |
| 131 TEST_F(CertIssuerSourceStaticTest, IsNotAsync) { | 131 TEST_F(CertIssuerSourceStaticTest, IsNotAsync) { |
| 132 CertIssuerSourceStatic source; | 132 CertIssuerSourceStatic source; |
| 133 source.AddCert(i1_1_); | 133 source.AddCert(i1_1_); |
| 134 std::unique_ptr<CertIssuerSource::Request> request; | 134 std::unique_ptr<CertIssuerSource::Request> request; |
| 135 source.AsyncGetIssuersOf(c1_.get(), base::Bind(&NotCalled), &request); | 135 source.AsyncGetIssuersOf(c1_, base::Bind(&NotCalled), &request); |
| 136 EXPECT_EQ(nullptr, request); | 136 EXPECT_EQ(nullptr, request); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace | 139 } // namespace |
| 140 | 140 |
| 141 } // namespace net | 141 } // namespace net |
| OLD | NEW |