0eea198d86050cba8c054740f3bc9f7b7b65e53e
[gssweb.git] / json_gssapi / test / command_mocks / 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((char *)"");
34 GSSOID    MockImportName::input_name_type;
35 GSSName   MockImportName::output_name;
36
37
38
39 void MockImportName::reset()
40 {
41   retVal = 0;
42   minor_status = 0;
43   input_name_buffer.setValue(std::string());
44 }