26#ifndef MYSQLROUTER_MOCK_SERVER_GLOBAL_SCOPE_INCLUDED
27#define MYSQLROUTER_MOCK_SERVER_GLOBAL_SCOPE_INCLUDED
41 using type = std::map<key_type, value_type>;
51 std::vector<key_type>
keys;
53 keys.emplace_back(k.first);
stores global data as pair of <string, jsonfied-string>
Definition: mock_server_global_scope.h:37
std::map< key_type, value_type > type
Definition: mock_server_global_scope.h:41
size_t erase(const key_type &key)
Definition: mock_server_global_scope.h:65
std::mutex global_mutex_
Definition: mock_server_global_scope.h:78
std::vector< key_type > get_keys()
Definition: mock_server_global_scope.h:48
std::string key_type
Definition: mock_server_global_scope.h:39
type global_
Definition: mock_server_global_scope.h:77
std::string value_type
Definition: mock_server_global_scope.h:40
void set(const key_type &key, const value_type &value)
Definition: mock_server_global_scope.h:59
type get_all()
Definition: mock_server_global_scope.h:43
void reset(type globals)
Definition: mock_server_global_scope.h:71
static uint keys
Definition: hp_test2.cc:49
required string key
Definition: replication_asynchronous_connection_failover.proto:60