#include "src/trace_redaction/broadphase_packet_filter.h"
#include "protos/perfetto/trace/ftrace/ftrace.gen.h"
#include "protos/perfetto/trace/ftrace/ftrace_event.gen.h"
#include "protos/perfetto/trace/ftrace/ftrace_event_bundle.gen.h"
#include "protos/perfetto/trace/trace_packet.gen.h"
#include "src/base/test/status_matchers.h"
#include "src/trace_redaction/trace_redaction_framework.h"
#include "test/gtest_and_gmock.h"
#include "protos/perfetto/trace/trace_packet.pbzero.h"
namespace perfetto::trace_redaction {
class BroadphasePacketFilterTest : public testing::Test { … };
TEST_F(BroadphasePacketFilterTest, ReturnErrorForEmptyMasks) { … }
TEST_F(BroadphasePacketFilterTest, ReturnErrorForEmptyPacketMask) { … }
TEST_F(BroadphasePacketFilterTest, ReturnErrorForEmptyFtraceMask) { … }
TEST_F(BroadphasePacketFilterTest, ReturnErrorForNullPacket) { … }
TEST_F(BroadphasePacketFilterTest, ReturnErrorForEmptyPacket) { … }
TEST_F(BroadphasePacketFilterTest, DropsPacketField) { … }
TEST_F(BroadphasePacketFilterTest, KeepsPacketField) { … }
TEST_F(BroadphasePacketFilterTest, DropsAllFtraceEvents) { … }
TEST_F(BroadphasePacketFilterTest, KeepFtraceEvents) { … }
TEST_F(BroadphasePacketFilterTest, KeepsFtraceEvent) { … }
TEST_F(BroadphasePacketFilterTest, DropsFtraceEvent) { … }
}