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 19import "protos/perfetto/trace/track_event/debug_annotation.proto"; 20 21package perfetto.protos; 22 23// Event used by testing code. 24message TestEvent { 25 // Arbitrary string used in tests. 26 optional string str = 1; 27 28 // The current value of the random number sequence used in tests. 29 optional uint32 seq_value = 2; 30 31 // Monotonically increased on each packet. 32 optional uint64 counter = 3; 33 34 // No more packets should follow (from the current sequence). 35 optional bool is_last = 4; 36 37 message TestPayload { 38 repeated string str = 1; 39 repeated TestPayload nested = 2; 40 41 optional string single_string = 4; 42 43 optional int32 single_int = 5; 44 repeated int32 repeated_ints = 6; 45 46 // When 0 this is the bottom-most nested message. 47 optional uint32 remaining_nesting_depth = 3; 48 49 repeated DebugAnnotation debug_annotations = 7; 50 } 51 optional TestPayload payload = 5; 52} 53