f8a9aeb01791ea90dcc2b2733525c5ff5427c2ed
[gssweb.git] / json_gssapi / test / MockImportName.cpp
1 /*
2  * Copyright (c) 2014 Painless Security, LLC.
3  * 
4  * For license details, see the LICENSE file in the root of this project.
5  * 
6  * MockImportName - Mock out the parameters for calling the
7  * GSSImportName object's function
8  * 
9  */
10
11 #include "MockImportName.h"
12 #include <string>
13
14 /*
15 class MockImportName
16 {
17 public:
18   static OM_uint32              retVal;
19   static OM_uint32              minor_status;
20   static gss_buffer_t           input_name_buffer;
21   static gss_OID                input_name_type;
22   static gss_name_t             output_name;
23   
24   static bool                   visited;
25   
26   static void reset();
27 };
28
29 */
30
31 OM_uint32 MockImportName::retVal = 0;
32 OM_uint32 MockImportName::minor_status = 0;
33 GSSBuffer MockImportName::input_name_buffer = GSSBuffer(std::string(""));
34 gss_OID MockImportName::input_name_type = NULL;
35 gss_name_t MockImportName::output_name = NULL;
36
37
38
39 void MockImportName::reset()
40 {
41   retVal = 0;
42   minor_status = 0;
43   input_name_buffer.setValue(std::string());
44 }