Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
6c552dd7
Commit
6c552dd7
authored
Aug 09, 2021
by
Hubert Chathi
Browse files
use the right size in the tests
parent
d84c1af8
Pipeline
#9148
passed with stages
in 2 minutes and 28 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
tests/test_olm.cpp
View file @
6c552dd7
...
...
@@ -233,7 +233,7 @@ assert_not_equals(std::size_t(-1), ::olm_encrypt(
std
::
vector
<
std
::
uint8_t
>
tmp_message_1
(
message_1
);
std
::
vector
<
std
::
uint8_t
>
b_session_buffer
(
::
olm_
account
_size
());
std
::
vector
<
std
::
uint8_t
>
b_session_buffer
(
::
olm_
session
_size
());
::
OlmSession
*
b_session
=
::
olm_session
(
b_session_buffer
.
data
());
::
olm_create_inbound_session
(
b_session
,
b_account
,
tmp_message_1
.
data
(),
message_1
.
size
()
...
...
@@ -375,7 +375,7 @@ assert_not_equals(std::size_t(-1), ::olm_encrypt(
));
std
::
vector
<
std
::
uint8_t
>
tmp_message_1
(
message_1
);
std
::
vector
<
std
::
uint8_t
>
b_session_buffer
(
::
olm_
account
_size
());
std
::
vector
<
std
::
uint8_t
>
b_session_buffer
(
::
olm_
session
_size
());
::
OlmSession
*
b_session
=
::
olm_session
(
b_session_buffer
.
data
());
::
olm_create_inbound_session
(
b_session
,
b_account
,
tmp_message_1
.
data
(),
message_1
.
size
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment