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

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

Issue 511163002: Net-related fixups for scoped_refptr conversion operator cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix naming to match Created 6 years, 3 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
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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
11 namespace net { 11 namespace net {
12 class HttpNetworkSession; 12 class HttpNetworkSession;
13 class SSLCertRequestInfo; 13 class SSLCertRequestInfo;
14 class URLRequest; 14 class URLRequest;
15 class X509Certificate; 15 class X509Certificate;
16 } 16 }
17 17
18 class SSLClientAuthRequestorMock 18 class SSLClientAuthRequestorMock
19 : public base::RefCountedThreadSafe<SSLClientAuthRequestorMock> { 19 : public base::RefCountedThreadSafe<SSLClientAuthRequestorMock> {
20 public: 20 public:
21 SSLClientAuthRequestorMock( 21 SSLClientAuthRequestorMock(
22 net::URLRequest* request, 22 net::URLRequest* request,
23 net::SSLCertRequestInfo* cert_request_info); 23 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info);
24 24
25 MOCK_METHOD1(CertificateSelected, void(net::X509Certificate* cert)); 25 MOCK_METHOD1(CertificateSelected, void(net::X509Certificate* cert));
26 26
27 net::SSLCertRequestInfo* cert_request_info_; 27 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
28 net::HttpNetworkSession* http_network_session_; 28 net::HttpNetworkSession* http_network_session_;
29 29
30 protected: 30 protected:
31 friend class base::RefCountedThreadSafe<SSLClientAuthRequestorMock>; 31 friend class base::RefCountedThreadSafe<SSLClientAuthRequestorMock>;
32 virtual ~SSLClientAuthRequestorMock(); 32 virtual ~SSLClientAuthRequestorMock();
33 }; 33 };
34 34
35 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_ 35 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_client_auth_observer.cc ('k') | chrome/browser/ssl/ssl_client_auth_requestor_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698