blob: a71d933af89c89995db87bbb2cc090c6a8706b9a [file] [log] [blame]
// Copyright 2018 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.
#include "chrome/browser/ssl/chrome_mock_cert_verifier.h"
#include "chrome/browser/profiles/profile_io_data.h"
ChromeMockCertVerifier::ChromeMockCertVerifier() = default;
ChromeMockCertVerifier::~ChromeMockCertVerifier() = default;
void ChromeMockCertVerifier::SetUpInProcessBrowserTestFixture() {
ContentMockCertVerifier::SetUpInProcessBrowserTestFixture();
IOThread::SetCertVerifierForTesting(mock_cert_verifier_internal());
ProfileIOData::SetCertVerifierForTesting(mock_cert_verifier_internal());
}
void ChromeMockCertVerifier::TearDownInProcessBrowserTestFixture() {
ContentMockCertVerifier::TearDownInProcessBrowserTestFixture();
IOThread::SetCertVerifierForTesting(nullptr);
ProfileIOData::SetCertVerifierForTesting(nullptr);
}