Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Side by Side Diff: chrome/browser/ssl/cert_verifier_browser_test.cc

Issue 1227943002: Allow browser tests to use a MockCertVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: put the files in the right .gypi Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ssl/cert_verifier_browser_test.h"
6
7 #include "chrome/browser/profiles/profile_io_data.h"
8 #include "net/cert/mock_cert_verifier.h"
9
10 CertVerifierBrowserTest::CertVerifierBrowserTest()
11 : InProcessBrowserTest(),
12 mock_cert_verifier_(new net::MockCertVerifier()) {}
13
14 CertVerifierBrowserTest::~CertVerifierBrowserTest() {}
15
16 void CertVerifierBrowserTest::SetUpInProcessBrowserTestFixture() {
17 ProfileIOData::SetCertVerifierForTesting(mock_cert_verifier_.get());
18 }
19
20 void CertVerifierBrowserTest::TearDownInProcessBrowserTestFixture() {
21 ProfileIOData::SetCertVerifierForTesting(nullptr);
22 }
23
24 net::MockCertVerifier* CertVerifierBrowserTest::mock_cert_verifier() {
25 return mock_cert_verifier_.get();
26 }
OLDNEW
« no previous file with comments | « chrome/browser/ssl/cert_verifier_browser_test.h ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698