-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathgmock.conf
More file actions
41 lines (31 loc) · 772 Bytes
/
gmock.conf
File metadata and controls
41 lines (31 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#possible variables:
# file: interface file name
# dir: interface directory
# guard: header guard
# template: template parameters
# template_interface: template interface class
# interface: interface class
# mock_methods: generated gmock methods
# generated_dir: generated directory
# mock_file_hpp: mock header file
# mock_file_cpp: mock source file
mock_file_hpp = "%(interface)sMock.hpp"
file_template_hpp = """\
/*
* file generated by gmock: %(mock_file_hpp)s
*/
#ifndef %(guard)s
#define %(guard)s
#include <gmock/gmock.h>
#include "%(dir)s/%(file)s"
%(namespaces_begin)s
%(template)sclass %(interface)sMock : public %(template_interface)s
{
public:
%(mock_methods)s
};
%(namespaces_end)s
#endif // %(guard)s
"""
mock_file_cpp = ""
file_template_cpp = ""