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

Unified Diff: content/browser/loader/resource_loader_unittest.cc

Issue 1304143010: Plumbing SSLPrivateKey Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase. Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/browser/ssl/ssl_client_auth_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_loader_unittest.cc
diff --git a/content/browser/loader/resource_loader_unittest.cc b/content/browser/loader/resource_loader_unittest.cc
index 05ed7fc4efb871db613b047f0af2cc02375f3214..d7c7e0d58512181a29e2093e8ce367fb6ac83d68 100644
--- a/content/browser/loader/resource_loader_unittest.cc
+++ b/content/browser/loader/resource_loader_unittest.cc
@@ -458,8 +458,9 @@ class SelectCertificateBrowserClient : public TestContentBrowserClient {
int call_count() { return call_count_; }
net::CertificateList passed_certs() { return passed_certs_; }
- void ContinueWithCertificate(net::X509Certificate* cert) {
- delegate_->ContinueWithCertificate(cert);
+ void ContinueWithCertificate(net::X509Certificate* cert,
+ net::SSLPrivateKey* private_key) {
+ delegate_->ContinueWithCertificate(cert, private_key);
delegate_.reset();
}
@@ -716,8 +717,8 @@ TEST_F(ClientCertResourceLoaderTest, WithStoreLookup) {
EXPECT_EQ(1, test_client.call_count());
EXPECT_EQ(dummy_certs, test_client.passed_certs());
- // Continue the request.
- test_client.ContinueWithCertificate(nullptr);
+ // Continue the request with no certificate.
+ test_client.ContinueWithCertificate(nullptr, nullptr);
raw_ptr_resource_handler_->WaitForResponseComplete();
EXPECT_EQ(net::OK, raw_ptr_resource_handler_->status().error());
@@ -741,8 +742,8 @@ TEST_F(ClientCertResourceLoaderTest, WithNullStore) {
EXPECT_EQ(1, test_client.call_count());
EXPECT_EQ(net::CertificateList(), test_client.passed_certs());
- // Continue the request.
- test_client.ContinueWithCertificate(nullptr);
+ // Continue the request with no certificate.
+ test_client.ContinueWithCertificate(nullptr, nullptr);
raw_ptr_resource_handler_->WaitForResponseComplete();
EXPECT_EQ(net::OK, raw_ptr_resource_handler_->status().error());
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/browser/ssl/ssl_client_auth_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698