diff options
| author | Alexander Blair <snipa@jagtech.io> | 2020-12-10 17:34:50 -0800 |
|---|---|---|
| committer | Alexander Blair <snipa@jagtech.io> | 2020-12-10 17:34:50 -0800 |
| commit | 1e9483a2d585d4ce4c2bf001862132ca46185c16 (patch) | |
| tree | b9a58d5cd7de6b8ed5da9df1c869449f0623611b /tests/fuzz/http-client.cpp | |
| parent | 6bddd54f9d1195c4dcef04e096474c2ff7066f1d (diff) | |
| parent | 7414e2bac11cbf9163ca16dc1b1510b4fd9a0d64 (diff) | |
| download | monzero-core-1e9483a2d585d4ce4c2bf001862132ca46185c16.tar.gz monzero-core-1e9483a2d585d4ce4c2bf001862132ca46185c16.tar.xz monzero-core-1e9483a2d585d4ce4c2bf001862132ca46185c16.zip | |
Merge pull request #7009
7414e2bac Change epee binary output from std::stringstream to byte_stream (Lee Clagett)
Diffstat (limited to 'tests/fuzz/http-client.cpp')
| -rw-r--r-- | tests/fuzz/http-client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fuzz/http-client.cpp b/tests/fuzz/http-client.cpp index 4b12b36bb..65df24a3f 100644 --- a/tests/fuzz/http-client.cpp +++ b/tests/fuzz/http-client.cpp @@ -26,6 +26,7 @@ // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include <boost/utility/string_ref.hpp> #include "include_base_utils.h" #include "file_io_utils.h" #include "net/http_client.h" @@ -38,7 +39,7 @@ public: bool connect(const std::string& addr, int port, std::chrono::milliseconds timeout, bool ssl = false, const std::string& bind_ip = "0.0.0.0") { return true; } bool connect(const std::string& addr, const std::string& port, std::chrono::milliseconds timeout, bool ssl = false, const std::string& bind_ip = "0.0.0.0") { return true; } bool disconnect() { return true; } - bool send(const std::string& buff, std::chrono::milliseconds timeout) { return true; } + bool send(const boost::string_ref buff, std::chrono::milliseconds timeout) { return true; } bool send(const void* data, size_t sz) { return true; } bool is_connected() { return true; } bool recv(std::string& buff, std::chrono::milliseconds timeout) |
