178dc1fa2482771de0d5b3f1377b2c3289b78463
[ric-plt/sdl.git] / include / private / tst / contentsbuildermock.hpp
1 /*
2    Copyright (c) 2018-2019 Nokia.
3
4    Licensed under the Apache License, Version 2.0 (the "License");
5    you may not use this file except in compliance with the License.
6    You may obtain a copy of the License at
7
8        http://www.apache.org/licenses/LICENSE-2.0
9
10    Unless required by applicable law or agreed to in writing, software
11    distributed under the License is distributed on an "AS IS" BASIS,
12    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    See the License for the specific language governing permissions and
14    limitations under the License.
15 */
16
17 #ifndef SHAREDDATALAYER_TST_CONTENTSBUILDERMOCK_HPP_
18 #define SHAREDDATALAYER_TST_CONTENTSBUILDERMOCK_HPP_
19
20 #include <gmock/gmock.h>
21 #include "private/redis/contentsbuilder.hpp"
22
23 namespace shareddatalayer
24 {
25     namespace tst
26     {
27         class ContentsBuilderMock: public redis::ContentsBuilder
28         {
29         public:
30             ContentsBuilderMock(const char nsKeySeparator) :
31                 ContentsBuilder(nsKeySeparator){}
32
33             MOCK_CONST_METHOD2(build, redis::Contents(const std::string& string,
34                                                       const std::string& string2));
35
36             MOCK_CONST_METHOD3(build, redis::Contents(const std::string& string,
37                                                       const std::string& string2,
38                                                       const std::string& string3));
39
40             MOCK_CONST_METHOD3(build, redis::Contents(const std::string& string,
41                                                       const AsyncConnection::Namespace& ns,
42                                                       const AsyncConnection::DataMap& dataMap));
43
44             MOCK_CONST_METHOD5(build, redis::Contents(const std::string& string,
45                                                       const AsyncConnection::Namespace& ns,
46                                                       const AsyncConnection::DataMap& dataMap,
47                                                       const std::string& string2,
48                                                       const std::string& string3));
49
50             MOCK_CONST_METHOD4(build, redis::Contents(const std::string& string,
51                                                       const AsyncConnection::Namespace& ns,
52                                                       const AsyncConnection::Key& key,
53                                                       const AsyncConnection::Data& data));
54
55             MOCK_CONST_METHOD6(build, redis::Contents(const std::string& string,
56                                                       const AsyncConnection::Namespace& ns,
57                                                       const AsyncConnection::Key& key,
58                                                       const AsyncConnection::Data& data,
59                                                       const std::string& string2,
60                                                       const std::string& string3));
61
62             MOCK_CONST_METHOD5(build, redis::Contents(const std::string& string,
63                                                       const AsyncConnection::Namespace& ns,
64                                                       const AsyncConnection::Key& key,
65                                                       const AsyncConnection::Data& data,
66                                                       const AsyncConnection::Data& data2));
67
68             MOCK_CONST_METHOD7(build, redis::Contents(const std::string& string,
69                                                       const AsyncConnection::Namespace& ns,
70                                                       const AsyncConnection::Key& key,
71                                                       const AsyncConnection::Data& data,
72                                                       const AsyncConnection::Data& data2,
73                                                       const std::string& string2,
74                                                       const std::string& string3));
75
76             MOCK_CONST_METHOD3(build, redis::Contents(const std::string& string,
77                                                       const AsyncConnection::Namespace& ns,
78                                                       const AsyncConnection::Keys& keys));
79
80             MOCK_CONST_METHOD5(build, redis::Contents(const std::string& string,
81                                                       const AsyncConnection::Namespace& ns,
82                                                       const AsyncConnection::Keys& keys,
83                                                       const std::string& string2,
84                                                       const std::string& string3));
85         };
86     }
87 }
88
89 #endif