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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 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
« no previous file with comments | « net/http/mock_allow_url_security_manager.h ('k') | net/http/mock_http_cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 OM_uint32 minor_response_code, 115 OM_uint32 minor_response_code,
116 const test::GssContextMockImpl& context_info, 116 const test::GssContextMockImpl& context_info,
117 const gss_buffer_desc& expected_input_token, 117 const gss_buffer_desc& expected_input_token,
118 const gss_buffer_desc& output_token); 118 const gss_buffer_desc& output_token);
119 119
120 // GSSAPILibrary methods: 120 // GSSAPILibrary methods:
121 121
122 // Initializes the library, including any necessary dynamic libraries. 122 // Initializes the library, including any necessary dynamic libraries.
123 // This is done separately from construction (which happens at startup time) 123 // This is done separately from construction (which happens at startup time)
124 // in order to delay work until the class is actually needed. 124 // in order to delay work until the class is actually needed.
125 virtual bool Init() OVERRIDE; 125 virtual bool Init() override;
126 126
127 // These methods match the ones in the GSSAPI library. 127 // These methods match the ones in the GSSAPI library.
128 virtual OM_uint32 import_name( 128 virtual OM_uint32 import_name(
129 OM_uint32* minor_status, 129 OM_uint32* minor_status,
130 const gss_buffer_t input_name_buffer, 130 const gss_buffer_t input_name_buffer,
131 const gss_OID input_name_type, 131 const gss_OID input_name_type,
132 gss_name_t* output_name) OVERRIDE; 132 gss_name_t* output_name) override;
133 virtual OM_uint32 release_name( 133 virtual OM_uint32 release_name(
134 OM_uint32* minor_status, 134 OM_uint32* minor_status,
135 gss_name_t* input_name) OVERRIDE; 135 gss_name_t* input_name) override;
136 virtual OM_uint32 release_buffer( 136 virtual OM_uint32 release_buffer(
137 OM_uint32* minor_status, 137 OM_uint32* minor_status,
138 gss_buffer_t buffer) OVERRIDE; 138 gss_buffer_t buffer) override;
139 virtual OM_uint32 display_name( 139 virtual OM_uint32 display_name(
140 OM_uint32* minor_status, 140 OM_uint32* minor_status,
141 const gss_name_t input_name, 141 const gss_name_t input_name,
142 gss_buffer_t output_name_buffer, 142 gss_buffer_t output_name_buffer,
143 gss_OID* output_name_type) OVERRIDE; 143 gss_OID* output_name_type) override;
144 virtual OM_uint32 display_status( 144 virtual OM_uint32 display_status(
145 OM_uint32* minor_status, 145 OM_uint32* minor_status,
146 OM_uint32 status_value, 146 OM_uint32 status_value,
147 int status_type, 147 int status_type,
148 const gss_OID mech_type, 148 const gss_OID mech_type,
149 OM_uint32* message_contex, 149 OM_uint32* message_contex,
150 gss_buffer_t status_string) OVERRIDE; 150 gss_buffer_t status_string) override;
151 virtual OM_uint32 init_sec_context( 151 virtual OM_uint32 init_sec_context(
152 OM_uint32* minor_status, 152 OM_uint32* minor_status,
153 const gss_cred_id_t initiator_cred_handle, 153 const gss_cred_id_t initiator_cred_handle,
154 gss_ctx_id_t* context_handle, 154 gss_ctx_id_t* context_handle,
155 const gss_name_t target_name, 155 const gss_name_t target_name,
156 const gss_OID mech_type, 156 const gss_OID mech_type,
157 OM_uint32 req_flags, 157 OM_uint32 req_flags,
158 OM_uint32 time_req, 158 OM_uint32 time_req,
159 const gss_channel_bindings_t input_chan_bindings, 159 const gss_channel_bindings_t input_chan_bindings,
160 const gss_buffer_t input_token, 160 const gss_buffer_t input_token,
161 gss_OID* actual_mech_type, 161 gss_OID* actual_mech_type,
162 gss_buffer_t output_token, 162 gss_buffer_t output_token,
163 OM_uint32* ret_flags, 163 OM_uint32* ret_flags,
164 OM_uint32* time_rec) OVERRIDE; 164 OM_uint32* time_rec) override;
165 virtual OM_uint32 wrap_size_limit( 165 virtual OM_uint32 wrap_size_limit(
166 OM_uint32* minor_status, 166 OM_uint32* minor_status,
167 const gss_ctx_id_t context_handle, 167 const gss_ctx_id_t context_handle,
168 int conf_req_flag, 168 int conf_req_flag,
169 gss_qop_t qop_req, 169 gss_qop_t qop_req,
170 OM_uint32 req_output_size, 170 OM_uint32 req_output_size,
171 OM_uint32* max_input_size) OVERRIDE; 171 OM_uint32* max_input_size) override;
172 virtual OM_uint32 delete_sec_context( 172 virtual OM_uint32 delete_sec_context(
173 OM_uint32* minor_status, 173 OM_uint32* minor_status,
174 gss_ctx_id_t* context_handle, 174 gss_ctx_id_t* context_handle,
175 gss_buffer_t output_token) OVERRIDE; 175 gss_buffer_t output_token) override;
176 virtual OM_uint32 inquire_context( 176 virtual OM_uint32 inquire_context(
177 OM_uint32* minor_status, 177 OM_uint32* minor_status,
178 const gss_ctx_id_t context_handle, 178 const gss_ctx_id_t context_handle,
179 gss_name_t* src_name, 179 gss_name_t* src_name,
180 gss_name_t* targ_name, 180 gss_name_t* targ_name,
181 OM_uint32* lifetime_rec, 181 OM_uint32* lifetime_rec,
182 gss_OID* mech_type, 182 gss_OID* mech_type,
183 OM_uint32* ctx_flags, 183 OM_uint32* ctx_flags,
184 int* locally_initiated, 184 int* locally_initiated,
185 int* open) OVERRIDE; 185 int* open) override;
186 186
187 private: 187 private:
188 FRIEND_TEST_ALL_PREFIXES(HttpAuthGSSAPIPOSIXTest, GSSAPICycle); 188 FRIEND_TEST_ALL_PREFIXES(HttpAuthGSSAPIPOSIXTest, GSSAPICycle);
189 189
190 // |expected_security_queries| contains an ordered list of expected 190 // |expected_security_queries| contains an ordered list of expected
191 // |init_sec_context()| calls and the return values for those 191 // |init_sec_context()| calls and the return values for those
192 // calls. 192 // calls.
193 std::list<SecurityContextQuery> expected_security_queries_; 193 std::list<SecurityContextQuery> expected_security_queries_;
194 }; 194 };
195 195
196 } // namespace test 196 } // namespace test
197 197
198 } // namespace net 198 } // namespace net
199 199
200 #endif // NET_HTTP_MOCK_GSSAPI_LIBRARY_POSIX_H_ 200 #endif // NET_HTTP_MOCK_GSSAPI_LIBRARY_POSIX_H_
201 201
OLDNEW
« no previous file with comments | « net/http/mock_allow_url_security_manager.h ('k') | net/http/mock_http_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698