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

Unified Diff: net/ssl/client_cert_store_nss_unittest.cc

Issue 2848313003: Revert of Remove client_certs from SSLCertRequestInfo. (Closed)
Patch Set: Created 3 years, 8 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 | « net/ssl/client_cert_store_nss.cc ('k') | net/ssl/client_cert_store_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/client_cert_store_nss_unittest.cc
diff --git a/net/ssl/client_cert_store_nss_unittest.cc b/net/ssl/client_cert_store_nss_unittest.cc
index 8bfae5313f81bdb3d5e3b47baf89a6224f73d49b..bc222e87696cb7ae3cfacb263a31af9e3d711a4f 100644
--- a/net/ssl/client_cert_store_nss_unittest.cc
+++ b/net/ssl/client_cert_store_nss_unittest.cc
@@ -11,7 +11,6 @@
#include <memory>
#include <string>
-#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "crypto/scoped_test_nss_db.h"
@@ -22,17 +21,6 @@
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
-
-namespace {
-
-void SaveCertsAndQuitCallback(CertificateList* out_certs,
- base::Closure quit_closure,
- CertificateList in_certs) {
- *out_certs = std::move(in_certs);
- quit_closure.Run();
-}
-
-} // namespace
class ClientCertStoreNSSTestDelegate {
public:
@@ -80,9 +68,7 @@
CertificateList selected_certs;
base::RunLoop loop;
- store->GetClientCerts(*request.get(),
- base::Bind(SaveCertsAndQuitCallback, &selected_certs,
- loop.QuitClosure()));
+ store->GetClientCerts(*request.get(), &selected_certs, loop.QuitClosure());
loop.Run();
// The result be |client_1| with no intermediates.
@@ -102,9 +88,7 @@
CertificateList selected_certs;
base::RunLoop loop;
- store->GetClientCerts(*request.get(),
- base::Bind(SaveCertsAndQuitCallback, &selected_certs,
- loop.QuitClosure()));
+ store->GetClientCerts(*request.get(), &selected_certs, loop.QuitClosure());
loop.Run();
// The result be |client_1| with |client_1_ca| as an intermediate.
« no previous file with comments | « net/ssl/client_cert_store_nss.cc ('k') | net/ssl/client_cert_store_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698