blob: 05ee3d264988b100b0a57bfac80135723065a255 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (c) 2012 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.
#ifndef CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
#define CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
#pragma once
#include "base/memory/ref_counted.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace net {
class HttpNetworkSession;
class SSLCertRequestInfo;
class URLRequest;
class X509Certificate;
}
class SSLClientAuthRequestorMock
: public base::RefCountedThreadSafe<SSLClientAuthRequestorMock> {
public:
SSLClientAuthRequestorMock(
net::URLRequest* request,
net::SSLCertRequestInfo* cert_request_info);
// NOTE: we need a vtable or else gmock blows up.
virtual ~SSLClientAuthRequestorMock();
MOCK_METHOD1(CertificateSelected, void(net::X509Certificate* cert));
net::SSLCertRequestInfo* cert_request_info_;
net::HttpNetworkSession* http_network_session_;
};
#endif // CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
|