1 #include "gmock/gmock.h"
4 #include <rad/dbAdapter.hpp>
10 MOCK_METHOD2(Config,
void(
const std::string& endpoint,
const timeval& timeout));
11 MOCK_METHOD1(Delete,
int(
const std::vector<std::string>& keys));
15 MOCK_METHOD1(MultiGet, std::vector<std::string>(
const std::vector<std::string>& keys));
16 MOCK_METHOD2(Get, std::string(
const std::string& key,
const std::string& field));
17 MOCK_METHOD2(MultiGet, std::vector<std::string>(
const std::string& key,
18 const std::vector<std::string>& fields));
19 MOCK_METHOD2(Scan, std::map<std::string,std::string>(
const std::string& sorted_set,
20 const std::string& pattern));
22 MOCK_METHOD2(Set,
void(
const std::string& key,
const std::string& value));
23 MOCK_METHOD1(MultiSet,
void(
const std::vector<std::string>& kvs));
25 const std::string& field,
26 const std::string& value));
28 const std::vector<std::string>& fvs));
MOCK_METHOD3(Set, void(const std::string &key, const std::string &field, const std::string &value))
MOCK_METHOD0(Connect, void())
MOCK_METHOD2(Config, void(const std::string &endpoint, const timeval &timeout))
Definition: mockDbAdapter.hpp:6
MOCK_METHOD1(Delete, int(const std::vector< std::string > &keys))