#include "src/trace_processor/importers/common/process_tracker.h"
#include <memory>
#include <optional>
#include "perfetto/ext/base/string_view.h"
#include "src/trace_processor/importers/common/args_tracker.h"
#include "src/trace_processor/importers/common/event_tracker.h"
#include "src/trace_processor/importers/common/global_args_tracker.h"
#include "src/trace_processor/storage/trace_storage.h"
#include "test/gtest_and_gmock.h"
namespace perfetto::trace_processor {
namespace {
_;
InSequence;
Invoke;
class ProcessTrackerTest : public ::testing::Test { … };
TEST_F(ProcessTrackerTest, PushProcess) { … }
TEST_F(ProcessTrackerTest, GetOrCreateNewProcess) { … }
TEST_F(ProcessTrackerTest, StartNewProcess) { … }
TEST_F(ProcessTrackerTest, PushTwoProcessEntries_SamePidAndName) { … }
TEST_F(ProcessTrackerTest, PushTwoProcessEntries_DifferentPid) { … }
TEST_F(ProcessTrackerTest, AddProcessEntry_CorrectName) { … }
TEST_F(ProcessTrackerTest, UpdateThreadCreate) { … }
TEST_F(ProcessTrackerTest, PidReuseWithoutStartAndEndThread) { … }
TEST_F(ProcessTrackerTest, Cmdline) { … }
TEST_F(ProcessTrackerTest, UpdateThreadName) { … }
TEST_F(ProcessTrackerTest, SetStartTsIfUnset) { … }
TEST_F(ProcessTrackerTest, PidReuseAfterExplicitEnd) { … }
TEST_F(ProcessTrackerTest, TidReuseAfterExplicitEnd) { … }
TEST_F(ProcessTrackerTest, EndThreadAfterProcessEnd) { … }
TEST_F(ProcessTrackerTest, UpdateTrustedPid) { … }
TEST_F(ProcessTrackerTest, NamespacedProcessesAndThreads) { … }
}
}