mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-29 12:19:15 +00:00
Rename MSG_SERIALIZED_MAX_SIZE to MSG_MAX_SIZE
For simplicity and consistency with the server part.
This commit is contained in:
parent
d202d7b205
commit
d91c5dcfd5
6 changed files with 23 additions and 24 deletions
|
@ -24,7 +24,7 @@ static void test_deserialize_clipboard(void) {
|
|||
}
|
||||
|
||||
static void test_deserialize_clipboard_big(void) {
|
||||
unsigned char input[DEVICE_MSG_SERIALIZED_MAX_SIZE];
|
||||
unsigned char input[DEVICE_MSG_MAX_SIZE];
|
||||
input[0] = DEVICE_MSG_TYPE_CLIPBOARD;
|
||||
input[1] = DEVICE_MSG_TEXT_MAX_LENGTH >> 8; // MSB
|
||||
input[2] = DEVICE_MSG_TEXT_MAX_LENGTH & 0xff; // LSB
|
||||
|
@ -33,7 +33,7 @@ static void test_deserialize_clipboard_big(void) {
|
|||
|
||||
struct device_msg msg;
|
||||
ssize_t r = device_msg_deserialize(input, sizeof(input), &msg);
|
||||
assert(r == DEVICE_MSG_SERIALIZED_MAX_SIZE);
|
||||
assert(r == DEVICE_MSG_MAX_SIZE);
|
||||
|
||||
assert(msg.type == DEVICE_MSG_TYPE_CLIPBOARD);
|
||||
assert(msg.clipboard.text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue