Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: net/cert/internal/cert_issuer_source_static_unittest.cc

Issue 2126803004: WIP: NSS trust store integration for path builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert-command-line-path-builder-add_certpathbuilder
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/cert/internal/cert_issuer_source_static.cc ('k') | net/cert/internal/cert_issuer_source_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698