Skip to content

Commit 3bbdf58

Browse files
committed
test(VideoManager): fix WebSocket source test build
1 parent a33b306 commit 3bbdf58

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
@@ -18,6 +18,7 @@
1818
#include <QtWebSockets/QWebSocketServer>
1919
#include <array>
2020
#include <gst/app/gstappsink.h>
21+
#include <gst/app/gstappsrc.h>
2122
#include <gst/gst.h>
2223

2324
#include "GstSourceFactory.h"
@@ -133,15 +134,15 @@ QSslCertificate testTlsCertificate()
133134
"o28wbTAdBgNVHQ4EFgQUvOEXyJbTXCPncAQ5EWRp6XuZ1WgwHwYDVR0jBBgwFoAUvOEXyJbTXCPncAQ5EWRp6XuZ1WgwDwYD"
134135
"VR0TAQH/BAUwAwEB/zAaBgNVHREEEzARgglsb2NhbGhvc3SHBH8AAAEwCgYIKoZIzj0EAwIDSAAwRQIhAP8NQO0HrtST24NQ"
135136
"2BiGZOoyNmjgnlJ7U9vkDcwNXjYKAiBkOpNock+KqNb9qooUWnkxz0VUBbkKBcs9EFtS3EQndw==";
136-
return QSslCertificate(QByteArray::fromBase64(QByteArrayView(kCertificateDer)), QSsl::Der);
137+
return QSslCertificate(QByteArray::fromBase64(QByteArray(kCertificateDer)), QSsl::Der);
137138
}
138139

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

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

0 commit comments

Comments
 (0)