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

Side by Side Diff: net/http/mock_gssapi_library_posix.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GSSAPI_LIBRARY_POSIX_H_ 5 #ifndef NET_HTTP_MOCK_GSSAPI_LIBRARY_POSIX_H_
6 #define NET_HTTP_MOCK_GSSAPI_LIBRARY_POSIX_H_ 6 #define NET_HTTP_MOCK_GSSAPI_LIBRARY_POSIX_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const gss_buffer_desc& output_token); 116 const gss_buffer_desc& output_token);
117 117
118 // GSSAPILibrary methods: 118 // GSSAPILibrary methods:
119 119
120 // Initializes the library, including any necessary dynamic libraries. 120 // Initializes the library, including any necessary dynamic libraries.
121 // This is done separately from construction (which happens at startup time) 121 // This is done separately from construction (which happens at startup time)
122 // in order to delay work until the class is actually needed. 122 // in order to delay work until the class is actually needed.
123 virtual bool Init() OVERRIDE; 123 virtual bool Init() OVERRIDE;
124 124
125 // These methods match the ones in the GSSAPI library. 125 // These methods match the ones in the GSSAPI library.
126 virtual OM_uint32 import_name( 126 virtual OM_uint32 import_name(OM_uint32* minor_status,
127 OM_uint32* minor_status, 127 const gss_buffer_t input_name_buffer,
128 const gss_buffer_t input_name_buffer, 128 const gss_OID input_name_type,
129 const gss_OID input_name_type, 129 gss_name_t* output_name) OVERRIDE;
130 gss_name_t* output_name) OVERRIDE; 130 virtual OM_uint32 release_name(OM_uint32* minor_status,
131 virtual OM_uint32 release_name( 131 gss_name_t* input_name) OVERRIDE;
132 OM_uint32* minor_status, 132 virtual OM_uint32 release_buffer(OM_uint32* minor_status,
133 gss_name_t* input_name) OVERRIDE; 133 gss_buffer_t buffer) OVERRIDE;
134 virtual OM_uint32 release_buffer( 134 virtual OM_uint32 display_name(OM_uint32* minor_status,
135 OM_uint32* minor_status, 135 const gss_name_t input_name,
136 gss_buffer_t buffer) OVERRIDE; 136 gss_buffer_t output_name_buffer,
137 virtual OM_uint32 display_name( 137 gss_OID* output_name_type) OVERRIDE;
138 OM_uint32* minor_status, 138 virtual OM_uint32 display_status(OM_uint32* minor_status,
139 const gss_name_t input_name, 139 OM_uint32 status_value,
140 gss_buffer_t output_name_buffer, 140 int status_type,
141 gss_OID* output_name_type) OVERRIDE; 141 const gss_OID mech_type,
142 virtual OM_uint32 display_status( 142 OM_uint32* message_contex,
143 OM_uint32* minor_status, 143 gss_buffer_t status_string) OVERRIDE;
144 OM_uint32 status_value,
145 int status_type,
146 const gss_OID mech_type,
147 OM_uint32* message_contex,
148 gss_buffer_t status_string) OVERRIDE;
149 virtual OM_uint32 init_sec_context( 144 virtual OM_uint32 init_sec_context(
150 OM_uint32* minor_status, 145 OM_uint32* minor_status,
151 const gss_cred_id_t initiator_cred_handle, 146 const gss_cred_id_t initiator_cred_handle,
152 gss_ctx_id_t* context_handle, 147 gss_ctx_id_t* context_handle,
153 const gss_name_t target_name, 148 const gss_name_t target_name,
154 const gss_OID mech_type, 149 const gss_OID mech_type,
155 OM_uint32 req_flags, 150 OM_uint32 req_flags,
156 OM_uint32 time_req, 151 OM_uint32 time_req,
157 const gss_channel_bindings_t input_chan_bindings, 152 const gss_channel_bindings_t input_chan_bindings,
158 const gss_buffer_t input_token, 153 const gss_buffer_t input_token,
159 gss_OID* actual_mech_type, 154 gss_OID* actual_mech_type,
160 gss_buffer_t output_token, 155 gss_buffer_t output_token,
161 OM_uint32* ret_flags, 156 OM_uint32* ret_flags,
162 OM_uint32* time_rec) OVERRIDE; 157 OM_uint32* time_rec) OVERRIDE;
163 virtual OM_uint32 wrap_size_limit( 158 virtual OM_uint32 wrap_size_limit(OM_uint32* minor_status,
164 OM_uint32* minor_status, 159 const gss_ctx_id_t context_handle,
165 const gss_ctx_id_t context_handle, 160 int conf_req_flag,
166 int conf_req_flag, 161 gss_qop_t qop_req,
167 gss_qop_t qop_req, 162 OM_uint32 req_output_size,
168 OM_uint32 req_output_size, 163 OM_uint32* max_input_size) OVERRIDE;
169 OM_uint32* max_input_size) OVERRIDE; 164 virtual OM_uint32 delete_sec_context(OM_uint32* minor_status,
170 virtual OM_uint32 delete_sec_context( 165 gss_ctx_id_t* context_handle,
171 OM_uint32* minor_status, 166 gss_buffer_t output_token) OVERRIDE;
172 gss_ctx_id_t* context_handle, 167 virtual OM_uint32 inquire_context(OM_uint32* minor_status,
173 gss_buffer_t output_token) OVERRIDE; 168 const gss_ctx_id_t context_handle,
174 virtual OM_uint32 inquire_context( 169 gss_name_t* src_name,
175 OM_uint32* minor_status, 170 gss_name_t* targ_name,
176 const gss_ctx_id_t context_handle, 171 OM_uint32* lifetime_rec,
177 gss_name_t* src_name, 172 gss_OID* mech_type,
178 gss_name_t* targ_name, 173 OM_uint32* ctx_flags,
179 OM_uint32* lifetime_rec, 174 int* locally_initiated,
180 gss_OID* mech_type, 175 int* open) OVERRIDE;
181 OM_uint32* ctx_flags,
182 int* locally_initiated,
183 int* open) OVERRIDE;
184 176
185 private: 177 private:
186 FRIEND_TEST_ALL_PREFIXES(HttpAuthGSSAPIPOSIXTest, GSSAPICycle); 178 FRIEND_TEST_ALL_PREFIXES(HttpAuthGSSAPIPOSIXTest, GSSAPICycle);
187 179
188 // |expected_security_queries| contains an ordered list of expected 180 // |expected_security_queries| contains an ordered list of expected
189 // |init_sec_context()| calls and the return values for those 181 // |init_sec_context()| calls and the return values for those
190 // calls. 182 // calls.
191 std::list<SecurityContextQuery> expected_security_queries_; 183 std::list<SecurityContextQuery> expected_security_queries_;
192 }; 184 };
193 185
194 } // namespace test 186 } // namespace test
195 187
196 } // namespace net 188 } // namespace net
197 189
198 #endif // NET_HTTP_MOCK_GSSAPI_LIBRARY_POSIX_H_ 190 #endif // NET_HTTP_MOCK_GSSAPI_LIBRARY_POSIX_H_
199
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698