1/* 2 * Copyright (C) 2020 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 public "protos/perfetto/trace/track_event/track_event.proto"; 20 21package perfetto.protos; 22 23// Extensions for TrackEvent used for integration testing. This proto file is 24// compiled to descriptor and is used in tools/diff_test_trace_processor.py. 25// 26// See docs/design-docs/extensions.md for more details. 27message TestExtension { 28 extend TrackEvent { 29 optional string string_extension_for_testing = 9900; 30 repeated int32 int_extension_for_testing = 9901; 31 optional string omitted_extension_for_testing = 9902; 32 optional TestExtensionChild nested_message_extension_for_testing = 9903; 33 } 34} 35 36message TestExtensionChild { 37 optional string child_field_for_testing = 1; 38} 39