#include "perfetto/protozero/scattered_heap_buffer.h"
#include "src/trace_redaction/proto_util.h"
#include "test/gtest_and_gmock.h"
#include "protos/perfetto/config/test_config.gen.h"
#include "protos/perfetto/config/test_config.pbzero.h"
#include "protos/perfetto/trace/trace_packet.gen.h"
namespace perfetto::trace_redaction {
namespace proto_util {
class ProtoUtilTest : public testing::Test { … };
class ProtoUtilUint32Test : public ProtoUtilTest,
public testing::WithParamInterface<uint32_t> { … };
class ProtoUtilUint64Test : public ProtoUtilTest,
public testing::WithParamInterface<uint64_t> { … };
class ProtoUtilInt32Test : public ProtoUtilTest,
public testing::WithParamInterface<int32_t> { … };
class ProtoUtilInt64Test : public ProtoUtilTest,
public testing::WithParamInterface<int64_t> { … };
class ProtoUtilFixed32Test : public ProtoUtilTest,
public testing::WithParamInterface<uint32_t> { … };
class ProtoUtilFixed64Test : public ProtoUtilTest,
public testing::WithParamInterface<uint64_t> { … };
class ProtoUtilSfixed32Test : public ProtoUtilTest,
public testing::WithParamInterface<int32_t> { … };
class ProtoUtilSfixed64Test : public ProtoUtilTest,
public testing::WithParamInterface<int64_t> { … };
class ProtoUtilDoubleTest : public ProtoUtilTest,
public testing::WithParamInterface<double> { … };
class ProtoUtilFloatTest : public ProtoUtilTest,
public testing::WithParamInterface<float> { … };
class ProtoUtilSint32Test : public ProtoUtilTest,
public testing::WithParamInterface<int32_t> { … };
class ProtoUtilSint64Test : public ProtoUtilTest,
public testing::WithParamInterface<int64_t> { … };
class ProtoUtilStringTest : public ProtoUtilTest,
public testing::WithParamInterface<std::string> { … };
class ProtoUtilBytesTest : public ProtoUtilTest,
public testing::WithParamInterface<std::string> { … };
TEST_P(ProtoUtilUint32Test, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilUint64Test, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilInt32Test, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilInt64Test, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilFixed32Test, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilSfixed32Test, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilDoubleTest, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilFloatTest, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilSint64Test, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilSint32Test, FullDomain) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilStringTest, Various) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ProtoUtilBytesTest, Various) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}