OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 NET_HTTP_MOCK_SSPI_LIBRARY_WIN_H_ | 5 #ifndef NET_HTTP_MOCK_SSPI_LIBRARY_WIN_H_ |
6 #define NET_HTTP_MOCK_SSPI_LIBRARY_WIN_H_ | 6 #define NET_HTTP_MOCK_SSPI_LIBRARY_WIN_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 unsigned long fContextReq, | 37 unsigned long fContextReq, |
38 unsigned long Reserved1, | 38 unsigned long Reserved1, |
39 unsigned long TargetDataRep, | 39 unsigned long TargetDataRep, |
40 PSecBufferDesc pInput, | 40 PSecBufferDesc pInput, |
41 unsigned long Reserved2, | 41 unsigned long Reserved2, |
42 PCtxtHandle phNewContext, | 42 PCtxtHandle phNewContext, |
43 PSecBufferDesc pOutput, | 43 PSecBufferDesc pOutput, |
44 unsigned long* contextAttr, | 44 unsigned long* contextAttr, |
45 PTimeStamp ptsExpiry); | 45 PTimeStamp ptsExpiry); |
46 virtual SECURITY_STATUS QuerySecurityPackageInfo(LPWSTR pszPackageName, | 46 virtual SECURITY_STATUS QuerySecurityPackageInfo(LPWSTR pszPackageName, |
47 PSecPkgInfoW *pkgInfo); | 47 PSecPkgInfoW* pkgInfo); |
48 virtual SECURITY_STATUS FreeCredentialsHandle(PCredHandle phCredential); | 48 virtual SECURITY_STATUS FreeCredentialsHandle(PCredHandle phCredential); |
49 virtual SECURITY_STATUS DeleteSecurityContext(PCtxtHandle phContext); | 49 virtual SECURITY_STATUS DeleteSecurityContext(PCtxtHandle phContext); |
50 virtual SECURITY_STATUS FreeContextBuffer(PVOID pvContextBuffer); | 50 virtual SECURITY_STATUS FreeContextBuffer(PVOID pvContextBuffer); |
51 | 51 |
52 // Establishes an expectation for a |QuerySecurityPackageInfo()| call. | 52 // Establishes an expectation for a |QuerySecurityPackageInfo()| call. |
53 // | 53 // |
54 // Each expectation established by |ExpectSecurityQueryPackageInfo()| must be | 54 // Each expectation established by |ExpectSecurityQueryPackageInfo()| must be |
55 // matched by a call to |QuerySecurityPackageInfo()| during the lifetime of | 55 // matched by a call to |QuerySecurityPackageInfo()| during the lifetime of |
56 // the MockSSPILibrary. The |expected_package| argument must equal the | 56 // the MockSSPILibrary. The |expected_package| argument must equal the |
57 // |*pszPackageName| argument to |QuerySecurityPackageInfo()| for there to be | 57 // |*pszPackageName| argument to |QuerySecurityPackageInfo()| for there to be |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // calls. | 102 // calls. |
103 std::list<PackageQuery> expected_package_queries_; | 103 std::list<PackageQuery> expected_package_queries_; |
104 | 104 |
105 // Set of packages which should be freed. | 105 // Set of packages which should be freed. |
106 std::set<PSecPkgInfoW> expected_freed_packages_; | 106 std::set<PSecPkgInfoW> expected_freed_packages_; |
107 }; | 107 }; |
108 | 108 |
109 } // namespace net | 109 } // namespace net |
110 | 110 |
111 #endif // NET_HTTP_MOCK_SSPI_LIBRARY_WIN_H_ | 111 #endif // NET_HTTP_MOCK_SSPI_LIBRARY_WIN_H_ |
OLD | NEW |