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

Unified Diff: net/cert/internal/verify_certificate_chain_typed_unittest.h

Issue 2801813004: Refactor VerifyCertificateChain test data to include a key purpose (Closed)
Patch Set: Address mattm's comment 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
Index: net/cert/internal/verify_certificate_chain_typed_unittest.h
diff --git a/net/cert/internal/verify_certificate_chain_typed_unittest.h b/net/cert/internal/verify_certificate_chain_typed_unittest.h
index 8c64d916cc331cb19aed5ef8cf62b9d8342a519c..1861241e574dbc271c2afdffde4919f4514b20ab 100644
--- a/net/cert/internal/verify_certificate_chain_typed_unittest.h
+++ b/net/cert/internal/verify_certificate_chain_typed_unittest.h
@@ -18,20 +18,14 @@ template <typename TestDelegate>
class VerifyCertificateChainTest : public ::testing::Test {
public:
void RunTest(const char* file_name) {
- ParsedCertificateList chain;
- scoped_refptr<TrustAnchor> trust_anchor;
- der::GeneralizedTime time;
- bool expected_result;
- std::string expected_errors;
+ VerifyCertChainTest test;
std::string path =
std::string("net/data/verify_certificate_chain_unittest/") + file_name;
- ReadVerifyCertChainTestFromFile(path, &chain, &trust_anchor, &time,
- &expected_result, &expected_errors);
+ ReadVerifyCertChainTestFromFile(path, &test);
- TestDelegate::Verify(chain, trust_anchor, time, expected_result,
- expected_errors, path);
+ TestDelegate::Verify(test, path);
}
};
« no previous file with comments | « net/cert/internal/trust_store_nss_unittest.cc ('k') | net/cert/internal/verify_certificate_chain_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698