chromium/base/test/trace_event_analyzer_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/test/trace_event_analyzer.h"

#include <stddef.h>
#include <stdint.h>

#include "base/functional/bind.h"
#include "base/memory/ref_counted_memory.h"
#include "base/numerics/safe_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/platform_thread.h"
#include "base/trace_event/trace_buffer.h"
#include "base/trace_event/traced_value.h"
#include "base/types/optional_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace trace_analyzer {

namespace {

class TraceEventAnalyzerTest : public testing::Test {};

void TraceEventAnalyzerTest::ManualSetUp() {}

void TraceEventAnalyzerTest::OnTraceDataCollected(
    base::WaitableEvent* flush_complete_event,
    const scoped_refptr<base::RefCountedString>& json_events_str,
    bool has_more_events) {}

void TraceEventAnalyzerTest::BeginTracing() {}

void TraceEventAnalyzerTest::EndTracing() {}

}  // namespace

TEST_F(TraceEventAnalyzerTest, NoEvents) {}

TEST_F(TraceEventAnalyzerTest, TraceEvent) {}

TEST_F(TraceEventAnalyzerTest, QueryEventMember) {}

TEST_F(TraceEventAnalyzerTest, BooleanOperators) {}

TEST_F(TraceEventAnalyzerTest, ArithmeticOperators) {}

TEST_F(TraceEventAnalyzerTest, StringPattern) {}

// Test that duration queries work.
TEST_F(TraceEventAnalyzerTest, CompleteDuration) {}

// Test AssociateAsyncBeginEndEvents
TEST_F(TraceEventAnalyzerTest, AsyncBeginEndAssocations) {}

// Test AssociateAsyncBeginEndEvents
TEST_F(TraceEventAnalyzerTest, AsyncBeginEndAssocationsWithSteps) {}

// Test that the TraceAnalyzer custom associations work.
TEST_F(TraceEventAnalyzerTest, CustomAssociations) {}

// Verify that Query literals and types are properly casted.
TEST_F(TraceEventAnalyzerTest, Literals) {}

// Test GetRateStats.
TEST_F(TraceEventAnalyzerTest, RateStats) {}

// Test FindFirstOf and FindLastOf.
TEST_F(TraceEventAnalyzerTest, FindOf) {}

// Test FindClosest.
TEST_F(TraceEventAnalyzerTest, FindClosest) {}

// Test CountMatches.
TEST_F(TraceEventAnalyzerTest, CountMatches) {}

TEST_F(TraceEventAnalyzerTest, ComplexArgument) {}

TEST_F(TraceEventAnalyzerTest, AssociateNestableAsyncEvents) {}

}  // namespace trace_analyzer