expose a way to set tls options for a sentry client, for testing
This commit is contained in:
		| @@ -40,6 +40,11 @@ namespace ix | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     void SentryClient::setTLSOptions(const SocketTLSOptions& tlsOptions) | ||||
|     { | ||||
|         _httpClient->setTLSOptions(tlsOptions); | ||||
|     } | ||||
|  | ||||
|     int64_t SentryClient::getTimestamp() | ||||
|     { | ||||
|         const auto tp = std::chrono::system_clock::now(); | ||||
|   | ||||
| @@ -8,6 +8,7 @@ | ||||
|  | ||||
| #include <algorithm> | ||||
| #include <ixwebsocket/IXHttpClient.h> | ||||
| #include <ixwebsocket/IXSocketTLSOptions.h> | ||||
| #include <json/json.h> | ||||
| #include <regex> | ||||
| #include <memory> | ||||
| @@ -24,6 +25,9 @@ namespace ix | ||||
|  | ||||
|         Json::Value parseLuaStackTrace(const std::string& stack); | ||||
|  | ||||
|         // Mostly for testing | ||||
|         void setTLSOptions(const SocketTLSOptions& tlsOptions); | ||||
|  | ||||
|         void uploadMinidump( | ||||
|             const std::string& sentryMetadata, | ||||
|             const std::string& minidumpBytes, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user