aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-04-21 08:26:54 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-04-21 08:26:54 -0500
commit2d729fbdf79e8f161159bd54ac88b2d7836738ac (patch)
tree852ba7aa8bf9479c6c0991baef0fa6bd1c0f30e2 /tests
parentMerge pull request #6278 (diff)
parentAllow wallet2.h to run in WebAssembly (diff)
downloadmonero-2d729fbdf79e8f161159bd54ac88b2d7836738ac.tar.xz
Merge pull request #6332
87d7558 Allow wallet2.h to run in WebAssembly (woodser)
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz/http-client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/fuzz/http-client.cpp b/tests/fuzz/http-client.cpp
index 1750838ae..ea6d5a2ad 100644
--- a/tests/fuzz/http-client.cpp
+++ b/tests/fuzz/http-client.cpp
@@ -29,6 +29,7 @@
#include "include_base_utils.h"
#include "file_io_utils.h"
#include "net/http_client.h"
+#include "net/net_ssl.h"
#include "fuzzer.h"
class dummy_client
@@ -46,6 +47,10 @@ public:
data.clear();
return true;
}
+ void set_ssl(epee::net_utils::ssl_options_t ssl_options) { }
+ bool is_connected(bool *ssl = NULL) { return true; }
+ uint64_t get_bytes_sent() const { return 1; }
+ uint64_t get_bytes_received() const { return 1; }
void set_test_data(const std::string &s) { data = s; }