chromium/third_party/perfetto/src/trace_processor/importers/proto/proto_trace_reader_unittest.cc

/*
 * Copyright (C) 2024 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 "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) {}

}  // namespace
}  // namespace perfetto::trace_processor