blob: be8e2793280555b1866f1e20deecfe1f473127f6 [file] [log] [blame]
// Copyright 2015 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/cert_verifier_browser_test.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);
}
CertVerifierBrowserTest::CertVerifierBrowserTest() = default;
CertVerifierBrowserTest::~CertVerifierBrowserTest() = default;
void CertVerifierBrowserTest::SetUpCommandLine(
base::CommandLine* command_line) {
mock_cert_verifier_.SetUpCommandLine(command_line);
}
void CertVerifierBrowserTest::SetUpInProcessBrowserTestFixture() {
mock_cert_verifier_.SetUpInProcessBrowserTestFixture();
}
void CertVerifierBrowserTest::TearDownInProcessBrowserTestFixture() {
mock_cert_verifier_.TearDownInProcessBrowserTestFixture();
}