1syntax = "proto2";
2
3package chre_audio_concurrency_test;
4
5option java_package = "com.google.android.chre.nanoapp.proto";
6option java_outer_classname = "ChreAudioConcurrencyTest";
7
8import "chre_test_common.proto";
9
10// Nanoappp message type can be either host to chre (H2C) or chre to host (C2H)
11enum MessageType {
12  // Reserved for corrupted messages
13  UNDEFINED = 0;
14
15  // H2C: A message to start a test step.
16  // Payload must be TestCommand.
17  TEST_COMMAND = 1;
18
19  // C2H: A message indicating the test result.
20  // Payload must be chre_test_common.TestResult.
21  TEST_RESULT = 2;
22
23  // C2H: A message indicating that CHRE audio has been enabled and
24  // data has been received, after a previously received ENABLE_AUDIO
25  // step from a TEST_COMMAND message. No payload.
26  TEST_AUDIO_ENABLED = 3;
27}
28
29// A message to start a test step.
30message TestCommand {
31  enum Step {
32    UNDEFINED = 0;
33    // Sets up the test by enabling CHRE audio and verifying data reception.
34    ENABLE_AUDIO = 1;
35    // The host will send this step when the AP has held and released access
36    // to the mic. The nanoapp should verify that audio data reception resumes.
37    VERIFY_AUDIO_RESUME = 2;
38  }
39
40  // The test step.
41  optional Step step = 1;
42}
43