chromium/third_party/perfetto/src/trace_processor/util/proto_to_args_parser_unittest.cc

/*
 * Copyright (C) 2021 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "src/trace_processor/util/proto_to_args_parser.h"

#include "perfetto/ext/base/string_view.h"
#include "perfetto/protozero/packed_repeated_fields.h"
#include "perfetto/protozero/scattered_heap_buffer.h"
#include "perfetto/trace_processor/trace_blob.h"
#include "perfetto/trace_processor/trace_blob_view.h"
#include "protos/perfetto/common/descriptor.pbzero.h"
#include "protos/perfetto/trace/track_event/source_location.pbzero.h"
#include "src/protozero/test/example_proto/test_messages.pbzero.h"
#include "src/trace_processor/test_messages.descriptor.h"
#include "src/trace_processor/util/interned_message_view.h"
#include "test/gtest_and_gmock.h"

#include <cstdint>
#include <limits>
#include <sstream>

namespace perfetto {
namespace trace_processor {
namespace util {
namespace {

constexpr size_t kChunkSize =;

protozero::ConstChars ToChars(const char* str) {}

class ProtoToArgsParserTest : public ::testing::Test,
                              public ProtoToArgsParser::Delegate {};

TEST_F(ProtoToArgsParserTest, EnsureTestMessageProtoParses) {}

TEST_F(ProtoToArgsParserTest, BasicSingleLayerProto) {}

TEST_F(ProtoToArgsParserTest, NestedProto) {}

TEST_F(ProtoToArgsParserTest, CamelCaseFieldsProto) {}

TEST_F(ProtoToArgsParserTest, NestedProtoParsingOverrideHandled) {}

TEST_F(ProtoToArgsParserTest, NestedProtoParsingOverrideSkipped) {}

TEST_F(ProtoToArgsParserTest, LookingUpInternedStateParsingOverride) {}

TEST_F(ProtoToArgsParserTest, OverrideForType) {}

TEST_F(ProtoToArgsParserTest, FieldOverrideTakesPrecedence) {}

TEST_F(ProtoToArgsParserTest, EmptyMessage) {}

TEST_F(ProtoToArgsParserTest, WidthAndSignednessOfScalars) {}

TEST_F(ProtoToArgsParserTest, PackedFields) {}

}  // namespace
}  // namespace util
}  // namespace trace_processor
}  // namespace perfetto