chromium/third_party/perfetto/src/protozero/test/protozero_conformance_unittest.cc

/*
 * Copyright (C) 2017 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 <limits>
#include <memory>
#include <vector>

#include "perfetto/protozero/message_handle.h"
#include "perfetto/protozero/packed_repeated_fields.h"
#include "perfetto/protozero/scattered_heap_buffer.h"
#include "test/gtest_and_gmock.h"

// Autogenerated headers in out/*/gen/
#include "src/protozero/test/example_proto/extensions.pb.h"
#include "src/protozero/test/example_proto/extensions.pbzero.h"
#include "src/protozero/test/example_proto/library.pbzero.h"
#include "src/protozero/test/example_proto/other_package/test_messages.pbzero.h"
#include "src/protozero/test/example_proto/subpackage/test_messages.pbzero.h"
#include "src/protozero/test/example_proto/test_messages.pb.h"
#include "src/protozero/test/example_proto/test_messages.pbzero.h"

// Generated by the protozero plugin.
namespace pbtest = protozero::test::protos::pbzero;
namespace pbtest_subpackage = protozero::test::protos::subpackage::pbzero;
namespace pbtest_otherpackage = other_package::pbzero;

// Generated by the official protobuf compiler.
namespace pbgold = protozero::test::protos;
namespace pbgold_subpackage = protozero::test::protos::subpackage;
namespace pbgold_other_package = other_package;

namespace protozero {
namespace {

constexpr size_t kChunkSize =;

TEST(ProtoZeroConformanceTest, SimpleFieldsNoNesting) {}

TEST(ProtoZeroConformanceTest, NestedMessages) {}

TEST(ProtoZeroConformanceTest, Extensions) {}

TEST(ProtoZeroConformanceTest, Import) {}

TEST(ProtoZeroConformanceTest, FieldNumbers) {}

TEST(ProtoZeroConformanceTest, PackedRepeatedVarint) {}

TEST(ProtoZeroConformanceTest, PackedRepeatedFixed32) {}

TEST(ProtoZeroConformanceTest, PackedRepeatedFixed64) {}

TEST(ProtoZeroConformanceTest, EmptyPackedRepeatedField) {}

// Tests that the stack -> heap expansion dosn't lose data.
TEST(ProtoZeroConformanceTest, PackedRepeatedResize) {}

TEST(ProtoZeroConformanceTest, EnumToString) {}

TEST(ProtoZeroConformanceTest, DifferentPackages) {}

}  // namespace
}  // namespace protozero