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

Unified Diff: net/cert/internal/test_helpers.cc

Issue 2800993002: Add a key purpose parameter to Certificate PathBuilder. (Closed)
Patch Set: rebase 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/cert/internal/test_helpers.h ('k') | net/cert/internal/trust_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/test_helpers.cc
diff --git a/net/cert/internal/test_helpers.cc b/net/cert/internal/test_helpers.cc
index f6a65d3e463669fba3b5d5bbba5c905971a680bc..80948c2318d3e8641affa4f738971cb28b6b1b54 100644
--- a/net/cert/internal/test_helpers.cc
+++ b/net/cert/internal/test_helpers.cc
@@ -174,11 +174,11 @@ void ReadVerifyCertChainTestFromFile(const std::string& file_path_ascii,
has_key_purpose = true;
if (block_data == "anyExtendedKeyUsage") {
- // TODO(eroman): test->key_purpose = ....
+ test->key_purpose = KeyPurpose::ANY_EKU;
} else if (block_data == "serverAuth") {
- // TODO(eroman): test->key_purpose = ....
+ test->key_purpose = KeyPurpose::SERVER_AUTH;
} else if (block_data == "clientAuth") {
- // TODO(eroman): test->key_purpose = ....
+ test->key_purpose = KeyPurpose::CLIENT_AUTH;
} else {
ADD_FAILURE() << "Unrecognized " << block_type << ": " << block_data;
}
« no previous file with comments | « net/cert/internal/test_helpers.h ('k') | net/cert/internal/trust_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698