// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BSSL_PKI_NIST_PKITS_UNITTEST_H_ #define BSSL_PKI_NIST_PKITS_UNITTEST_H_ #include <set> #include <gtest/gtest.h> #include "parse_values.h" #include "test_helpers.h" BSSL_NAMESPACE_BEGIN // Describes the inputs and outputs (other than the certificates) for // the PKITS tests. struct PkitsTestInfo { … }; // Parameterized test class for PKITS tests. // The instantiating code should define a PkitsTestDelegate with an appropriate // static RunTest method, and then INSTANTIATE_TYPED_TEST_SUITE_P for each // testcase (each TYPED_TEST_SUITE_P in pkits_testcases-inl.h). template <typename PkitsTestDelegate> class PkitsTest : public ::testing::Test { … }; // Inline the generated test code: #include "testdata/nist-pkits/pkits_testcases-inl.h" BSSL_NAMESPACE_END #endif // BSSL_PKI_NIST_PKITS_UNITTEST_H_