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

Side by Side Diff: chrome/test/base/cert_verifier_browser_test.h

Issue 1227943002: Allow browser tests to use a MockCertVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rsleevi, mmenke comments 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/test/base/cert_verifier_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_TEST_BASE_CERT_VERIFIER_BROWSER_TEST_H_
sky 2015/08/04 20:06:04 Can this test live in chrome/browser/ssl? Or some
estark 2015/08/04 20:52:08 Good point, I'm not sure why I put it here origina
6 #define CHROME_TEST_BASE_CERT_VERIFIER_BROWSER_TEST_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/test/base/in_process_browser_test.h"
10
11 namespace net {
12 class MockCertVerifier;
13 } // namespace net
14
15 // CertVerifierBrowserTest allows tests to force certificate
16 // verification results for requests made with any profile's main
17 // request context (such as navigations). To do so, tests can use the
18 // MockCertVerifier exposed via
19 // CertVerifierBrowserTest::mock_cert_verifier().
20 class CertVerifierBrowserTest : public InProcessBrowserTest {
21 public:
22 CertVerifierBrowserTest();
23 ~CertVerifierBrowserTest() override;
24
25 // InProcessBrowserTest:
26 void SetUpInProcessBrowserTestFixture() override;
27 void TearDownInProcessBrowserTestFixture() override;
28
29 // Returns a pointer to the MockCertVerifier used by all profiles in
30 // this test.
31 net::MockCertVerifier* mock_cert_verifier();
32
33 private:
34 scoped_ptr<net::MockCertVerifier> mock_cert_verifier_;
35 };
36
37 #endif // CHROME_TEST_BASE_CERT_VERIFIER_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/test/base/cert_verifier_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698