Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / ssl / cert_verifier_browser_test.h
blobd5d977ccae9e467d9d22e30855765280bed43e5f
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.
5 #ifndef CHROME_BROWSER_SSL_CERT_VERIFIER_BROWSER_TEST_H_
6 #define CHROME_BROWSER_SSL_CERT_VERIFIER_BROWSER_TEST_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/test/base/in_process_browser_test.h"
11 namespace net {
12 class MockCertVerifier;
13 } // namespace net
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;
25 // InProcessBrowserTest:
26 void SetUpInProcessBrowserTestFixture() override;
27 void TearDownInProcessBrowserTestFixture() override;
29 // Returns a pointer to the MockCertVerifier used by all profiles in
30 // this test.
31 net::MockCertVerifier* mock_cert_verifier();
33 private:
34 scoped_ptr<net::MockCertVerifier> mock_cert_verifier_;
37 #endif // CHROME_BROWSER_SSL_CERT_VERIFIER_BROWSER_TEST_H_