summaryrefslogtreecommitdiffstats
path: root/src/test/rgw/amqp_mock.h
blob: 94fdfdddcc1c85e8f43f1692fbe586ccb07d3175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
#pragma once

#include <string>

namespace amqp_mock {
void set_valid_port(int port);
void set_valid_host(const std::string& host);
void set_valid_vhost(const std::string& vhost);
void set_valid_user(const std::string& user, const std::string& password);
void set_multiple(unsigned tag);
void reset_multiple();
  
extern bool FAIL_NEXT_WRITE;        // default "false"
extern bool FAIL_NEXT_READ;         // default "false"
extern bool REPLY_ACK;              // default "true"
}