#include "net/cert/multi_threaded_cert_verifier.h"
#include <memory>
#include "base/debug/leak_annotations.h"
#include "base/files/file_path.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
#include "net/cert/cert_verify_proc.h"
#include "net/cert/cert_verify_result.h"
#include "net/cert/crl_set.h"
#include "net/cert/mock_cert_verifier.h"
#include "net/cert/x509_certificate.h"
#include "net/log/net_log_with_source.h"
#include "net/test/cert_test_util.h"
#include "net/test/gtest_util.h"
#include "net/test/test_data_directory.h"
#include "net/test/test_with_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
IsError;
IsOk;
_;
DoAll;
Return;
namespace net {
class ChromeRootStoreData;
class CertNetFetcher;
namespace {
void FailTest(int ) { … }
class MockCertVerifyProc : public CertVerifyProc { … };
ACTION(SetCertVerifyResult) { … }
ACTION(SetCertVerifyRevokedResult) { … }
class SwapWithNewProcFactory : public CertVerifyProcFactory { … };
}
class MultiThreadedCertVerifierTest : public TestWithTaskEnvironment { … };
TEST_F(MultiThreadedCertVerifierTest, CancelRequest) { … }
TEST_F(MultiThreadedCertVerifierTest, DeleteVerifier) { … }
namespace {
struct CertVerifyResultHelper { … };
}
TEST_F(MultiThreadedCertVerifierTest, DeleteVerifierCallbackOwnsResult) { … }
TEST_F(MultiThreadedCertVerifierTest, CancelRequestThenQuit) { … }
TEST_F(MultiThreadedCertVerifierTest, ConvertsConfigToFlags) { … }
TEST_F(MultiThreadedCertVerifierTest, ConvertsFlagsToFlags) { … }
TEST_F(MultiThreadedCertVerifierTest, VerifyProcChangeChromeRootStore) { … }
TEST_F(MultiThreadedCertVerifierTest, VerifyProcChangeRequest) { … }
}