xref: /aosp_15_r20/system/chre/apps/test/common/proto/chre_reliable_message_test.proto (revision 84e339476a462649f82315436d70fd732297a399)
1syntax = "proto2";
2
3package chre_reliable_message_test;
4
5option java_package = "com.google.android.chre.nanoapp.proto";
6option java_outer_classname = "ChreReliableMessageTest";
7
8enum MessageType {
9  // Reserved for corrupted messages
10  UNDEFINED_TYPE = 0;
11  // Sent by the host to start the test.
12  SEND_MESSAGES = 1;
13  // Sent by the nanoapp to report test result.
14  TEST_RESULT = 2;
15  // Sent by the nanoapp for the host to echo the message.
16  HOST_ECHO_MESSAGE = 3;
17  // Sent by the host for the nanoapp to echo the message.
18  NANOAPP_ECHO_MESSAGE = 4;
19}
20
21// Payload for the SEND_MESSAGES message.
22message SendMessagesCommand {
23  // Number of messages to send.
24  required uint32 numMessages = 1;
25  // Size of the messages.
26  required uint32 messageSize = 2;
27}
28