#include "src/tracing/core/null_trace_writer.h"
#include "perfetto/ext/base/utils.h"
#include "perfetto/ext/tracing/core/trace_writer.h"
#include "perfetto/protozero/scattered_stream_writer.h"
#include "src/base/test/utils.h"
#include "test/gtest_and_gmock.h"
#include "protos/perfetto/trace/test_event.pbzero.h"
#include "protos/perfetto/trace/trace_packet.pbzero.h"
namespace perfetto {
namespace {
TEST(NullTraceWriterTest, WriterIdIsZero) { … }
TEST(NullTraceWriterTest, NewTracePacket) { … }
#if defined(GTEST_HAS_DEATH_TEST)
TEST(NullTraceWriterDeathTest, NewTracePacketTakeStreamWriterNoFinish) { … }
#endif
TEST(NullTraceWriterTest, NewTracePacketTakeStreamWriterWithFinish) { … }
TEST(NullTraceWriterTest, FlushCallbackIsCalled) { … }
}
}