Rolf Badorek | ef2bf51 | 2019-08-20 11:17:15 +0300 | [diff] [blame] | 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 | |
Timo Tietavainen | a0745d2 | 2019-11-28 09:55:22 +0200 | [diff] [blame^] | 17 | /* |
| 18 | * This source code is part of the near-RT RIC (RAN Intelligent Controller) |
| 19 | * platform project (RICP). |
| 20 | */ |
| 21 | |
Rolf Badorek | ef2bf51 | 2019-08-20 11:17:15 +0300 | [diff] [blame] | 22 | #ifndef SHAREDDATALAYER_TST_CONTENTSBUILDERMOCK_HPP_ |
| 23 | #define SHAREDDATALAYER_TST_CONTENTSBUILDERMOCK_HPP_ |
| 24 | |
| 25 | #include <gmock/gmock.h> |
| 26 | #include "private/redis/contentsbuilder.hpp" |
| 27 | |
| 28 | namespace shareddatalayer |
| 29 | { |
| 30 | namespace tst |
| 31 | { |
| 32 | class ContentsBuilderMock: public redis::ContentsBuilder |
| 33 | { |
| 34 | public: |
| 35 | ContentsBuilderMock(const char nsKeySeparator) : |
| 36 | ContentsBuilder(nsKeySeparator){} |
| 37 | |
| 38 | MOCK_CONST_METHOD2(build, redis::Contents(const std::string& string, |
| 39 | const std::string& string2)); |
| 40 | |
| 41 | MOCK_CONST_METHOD3(build, redis::Contents(const std::string& string, |
| 42 | const std::string& string2, |
| 43 | const std::string& string3)); |
| 44 | |
| 45 | MOCK_CONST_METHOD3(build, redis::Contents(const std::string& string, |
| 46 | const AsyncConnection::Namespace& ns, |
| 47 | const AsyncConnection::DataMap& dataMap)); |
| 48 | |
| 49 | MOCK_CONST_METHOD5(build, redis::Contents(const std::string& string, |
| 50 | const AsyncConnection::Namespace& ns, |
| 51 | const AsyncConnection::DataMap& dataMap, |
| 52 | const std::string& string2, |
| 53 | const std::string& string3)); |
| 54 | |
| 55 | MOCK_CONST_METHOD4(build, redis::Contents(const std::string& string, |
| 56 | const AsyncConnection::Namespace& ns, |
| 57 | const AsyncConnection::Key& key, |
| 58 | const AsyncConnection::Data& data)); |
| 59 | |
| 60 | MOCK_CONST_METHOD6(build, redis::Contents(const std::string& string, |
| 61 | const AsyncConnection::Namespace& ns, |
| 62 | const AsyncConnection::Key& key, |
| 63 | const AsyncConnection::Data& data, |
| 64 | const std::string& string2, |
| 65 | const std::string& string3)); |
| 66 | |
| 67 | MOCK_CONST_METHOD5(build, redis::Contents(const std::string& string, |
| 68 | const AsyncConnection::Namespace& ns, |
| 69 | const AsyncConnection::Key& key, |
| 70 | const AsyncConnection::Data& data, |
| 71 | const AsyncConnection::Data& data2)); |
| 72 | |
| 73 | MOCK_CONST_METHOD7(build, redis::Contents(const std::string& string, |
| 74 | const AsyncConnection::Namespace& ns, |
| 75 | const AsyncConnection::Key& key, |
| 76 | const AsyncConnection::Data& data, |
| 77 | const AsyncConnection::Data& data2, |
| 78 | const std::string& string2, |
| 79 | const std::string& string3)); |
| 80 | |
| 81 | MOCK_CONST_METHOD3(build, redis::Contents(const std::string& string, |
| 82 | const AsyncConnection::Namespace& ns, |
| 83 | const AsyncConnection::Keys& keys)); |
| 84 | |
| 85 | MOCK_CONST_METHOD5(build, redis::Contents(const std::string& string, |
| 86 | const AsyncConnection::Namespace& ns, |
| 87 | const AsyncConnection::Keys& keys, |
| 88 | const std::string& string2, |
| 89 | const std::string& string3)); |
| 90 | }; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | #endif |