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

Side by Side Diff: chrome/browser/ssl/ssl_client_auth_requestor_mock.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_ 5 #ifndef CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
6 #define CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_ 6 #define CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace content { 13 namespace content {
14 class ClientCertificateDelegate; 14 class ClientCertificateDelegate;
15 } 15 }
16 16
17 namespace net { 17 namespace net {
18 class HttpNetworkSession;
19 class SSLCertRequestInfo; 18 class SSLCertRequestInfo;
20 class URLRequest; 19 class URLRequest;
21 class X509Certificate; 20 class X509Certificate;
22 } 21 }
23 22
24 class SSLClientAuthRequestorMock 23 class SSLClientAuthRequestorMock
25 : public base::RefCountedThreadSafe<SSLClientAuthRequestorMock> { 24 : public base::RefCountedThreadSafe<SSLClientAuthRequestorMock> {
26 public: 25 public:
27 SSLClientAuthRequestorMock( 26 SSLClientAuthRequestorMock(
28 net::URLRequest* request, 27 net::URLRequest* request,
29 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info); 28 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info);
30 29
31 std::unique_ptr<content::ClientCertificateDelegate> CreateDelegate(); 30 std::unique_ptr<content::ClientCertificateDelegate> CreateDelegate();
32 31
33 MOCK_METHOD1(CertificateSelected, void(net::X509Certificate* cert)); 32 MOCK_METHOD1(CertificateSelected, void(net::X509Certificate* cert));
34 MOCK_METHOD0(CancelCertificateSelection, void()); 33 MOCK_METHOD0(CancelCertificateSelection, void());
35 34
36 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_; 35 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
37 36
38 protected: 37 protected:
39 friend class base::RefCountedThreadSafe<SSLClientAuthRequestorMock>; 38 friend class base::RefCountedThreadSafe<SSLClientAuthRequestorMock>;
40 virtual ~SSLClientAuthRequestorMock(); 39 virtual ~SSLClientAuthRequestorMock();
41 }; 40 };
42 41
43 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_ 42 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_cert_reporter.h ('k') | chrome/browser/ssl/ssl_client_certificate_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698