1/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19package perfetto.protos;
20
21// Event used by testing code.
22message TestEvent {
23  // Arbitrary string used in tests.
24  optional string str = 1;
25
26  // The current value of the random number sequence used in tests.
27  optional uint32 seq_value = 2;
28
29  // Monotonically increased on each packet.
30  optional uint64 counter = 3;
31
32  // No more packets should follow (from the current sequence).
33  optional bool is_last = 4;
34
35  message TestPayload {
36    repeated string str = 1;
37    repeated TestPayload nested = 2;
38
39    optional string single_string = 4;
40
41    optional int32 single_int = 5;
42    repeated int32 repeated_ints = 6;
43
44    // When 0 this is the bottom-most nested message.
45    optional uint32 remaining_nesting_depth = 3;
46  }
47  optional TestPayload payload = 5;
48}
49