Skip to content

Commit e2b9427

Browse files
committed
test(VideoManager): fix WebSocket source test build
1 parent a0deba3 commit e2b9427

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/VideoManager/GStreamer/SourceFactory/GStreamerSourceFactoryTest.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <QtWebSockets/QWebSocketServer>
2020
#include <array>
2121
#include <gst/app/gstappsink.h>
22+
#include <gst/app/gstappsrc.h>
2223
#include <gst/gst.h>
2324

2425
#include "GstSourceFactory.h"
@@ -134,15 +135,15 @@ QSslCertificate testTlsCertificate()
134135
"o28wbTAdBgNVHQ4EFgQUvOEXyJbTXCPncAQ5EWRp6XuZ1WgwHwYDVR0jBBgwFoAUvOEXyJbTXCPncAQ5EWRp6XuZ1WgwDwYD"
135136
"VR0TAQH/BAUwAwEB/zAaBgNVHREEEzARgglsb2NhbGhvc3SHBH8AAAEwCgYIKoZIzj0EAwIDSAAwRQIhAP8NQO0HrtST24NQ"
136137
"2BiGZOoyNmjgnlJ7U9vkDcwNXjYKAiBkOpNock+KqNb9qooUWnkxz0VUBbkKBcs9EFtS3EQndw==";
137-
return QSslCertificate(QByteArray::fromBase64(QByteArrayView(kCertificateDer)), QSsl::Der);
138+
return QSslCertificate(QByteArray::fromBase64(QByteArray(kCertificateDer)), QSsl::Der);
138139
}
139140

140141
QSslKey testTlsPrivateKey()
141142
{
142143
static constexpr auto kPrivateKeyDer =
143144
"MHcCAQEEIEdHEf9aQn1QFwpXUAWdVOLDXr8LbWlidiIpShmGvco5oAoGCCqGSM49AwEHoUQDQgAEeDkrDE1IcJd2uSj9fIHZ"
144145
"v0DbMCquTRYNCanlDRewYBcwGtdFlSgO/3OkxKGirEp99ol3rDlGCOxbNVh+8xbIwA==";
145-
return QSslKey(QByteArray::fromBase64(QByteArrayView(kPrivateKeyDer)), QSsl::Ec, QSsl::Der, QSsl::PrivateKey);
146+
return QSslKey(QByteArray::fromBase64(QByteArray(kPrivateKeyDer)), QSsl::Ec, QSsl::Der, QSsl::PrivateKey);
146147
}
147148

148149
bool configureSecureTestServer(QWebSocketServer& server, const QSslCertificate& certificate, const QSslKey& privateKey)

0 commit comments

Comments
 (0)