ftp server free download full version// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_CERT_MOCK_CERT_VERIFICATION_INTERFACE_H_
#define NET_CERT_MOCK_CERT_VERIFICATION_INTERFACE_H_
#include
#include
#include
#include
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "base/time/time.h"
#include "net/base/net_export.h"
#include "net/base/ssl_cert_status_flags.h"
#include "net/cert/cert_status_flags_interface.h"
#include "net/cert/cert_verify_proc_callbacks.h"
#include "net/cert/parsed_certificate.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
class NET_EXPORT MockCertVerificationInterface
: public net::CertVerificationInterface {
public:
MockCertVerificationInterface();
~MockCertVerificationInterface() override;
// CertVerificationInterface.
bool CheckCertificate(
const ParsedCertificate& cert,
bool* expired,
const CompletionCallback& callback) override;
bool CheckChain(
const ParsedCertificate& cert,
bool* expired,
const CompletionCallback& callback) override;
bool IsCertBad(const ParsedCertificate& cert,
bool* expired,
bool* issuer_unknown) override;
// Optional methods for testing, used by MOCK be359ba680
Related links:
Comments