| Index: net/cert/internal/test_helpers.h
|
| diff --git a/net/cert/internal/test_helpers.h b/net/cert/internal/test_helpers.h
|
| index 999c37b55699cc02d059cad4caadeebf6a536510..414935b3bd6e8b0dafa081652a5e369d67a8b440 100644
|
| --- a/net/cert/internal/test_helpers.h
|
| +++ b/net/cert/internal/test_helpers.h
|
| @@ -11,6 +11,8 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "net/cert/internal/parsed_certificate.h"
|
| +#include "net/cert/internal/trust_store.h"
|
| #include "net/der/input.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -74,6 +76,18 @@ template <size_t N>
|
| return ReadTestDataFromPemFile(file_path_ascii, mappings, N);
|
| }
|
|
|
| +// Reads a test case from |file_name|. Test cases are comprised of a
|
| +// certificate chain, trust anchor, a timestamp to validate at, and the
|
| +// expected result of verification.
|
| +void ReadVerifyCertChainTestFromFile(const std::string& file_name,
|
| + ParsedCertificateList* chain,
|
| + scoped_refptr<TrustAnchor>* trust_anchor,
|
| + der::GeneralizedTime* time,
|
| + bool* verify_result);
|
| +
|
| +// Reads a data file relative to the src root directory.
|
| +std::string ReadTestFileToString(const std::string& file_name);
|
| +
|
| } // namespace net
|
|
|
| #endif // NET_CERT_INTERNAL_TEST_HELPERS_H_
|
|
|