#include "src/trace_processor/importers/proto/proto_trace_reader.h"
#include <memory>
#include "perfetto/protozero/scattered_heap_buffer.h"
#include "protos/perfetto/common/builtin_clock.pbzero.h"
#include "src/trace_processor/importers/common/clock_tracker.h"
#include "src/trace_processor/importers/common/machine_tracker.h"
#include "src/trace_processor/storage/trace_storage.h"
#include "test/gtest_and_gmock.h"
#include "protos/perfetto/trace/clock_snapshot.pbzero.h"
#include "protos/perfetto/trace/remote_clock_sync.pbzero.h"
namespace perfetto::trace_processor {
namespace {
constexpr auto REALTIME = …;
constexpr auto BOOTTIME = …;
class ProtoTraceReaderTest : public ::testing::Test { … };
TEST_F(ProtoTraceReaderTest, RemoteClockSync_Valid) { … }
TEST_F(ProtoTraceReaderTest, RemoteClockSync_Incomplete) { … }
TEST_F(ProtoTraceReaderTest, CalculateClockOffset) { … }
TEST_F(ProtoTraceReaderTest, CalculateClockOffset_AboveThreshold) { … }
TEST_F(ProtoTraceReaderTest, CalculateClockOffset_MultiRounds) { … }
}
}