chromium/gpu/command_buffer/service/gpu_tracer_unittest.cc

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

#include <stdint.h>

#include <memory>

#include "base/functional/bind.h"
#include "base/time/time.h"
#include "gpu/command_buffer/client/client_test_helper.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h"
#include "gpu/command_buffer/service/gpu_service_test.h"
#include "gpu/command_buffer/service/gpu_tracer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_mock.h"
#include "ui/gl/gpu_timing.h"
#include "ui/gl/gpu_timing_fake.h"

namespace gpu {
namespace gles2 {
namespace {

_;
AtMost;
Exactly;
Invoke;
Return;

int64_t g_fakeCPUTime =;
int64_t FakeCpuTime() {}

class MockOutputter : public Outputter {};

class GPUTracerTester : public GPUTracer {};

class BaseGpuTest : public GpuServiceTest {};

// Test GPUTrace calls all the correct gl calls.
class BaseGpuTraceTest : public BaseGpuTest {};

class GpuDisjointTimerTraceTest : public BaseGpuTraceTest {};

TEST_F(GpuDisjointTimerTraceTest, DisjointTimerTraceTestOff) {}

TEST_F(GpuDisjointTimerTraceTest, DisjointTimerTraceTestServiceOnly) {}

TEST_F(GpuDisjointTimerTraceTest, DisjointTimerTraceTestDeviceOnly) {}

TEST_F(GpuDisjointTimerTraceTest, DisjointTimerTraceTestBothOn) {}

// Test GPUTracer calls all the correct gl calls.
class BaseGpuTracerTest : public BaseGpuTest {};

class InvalidTimerTracerTest : public BaseGpuTracerTest {};

class GpuDisjointTimerTracerTest : public BaseGpuTracerTest {};

TEST_F(InvalidTimerTracerTest, InvalidTimerBasicTracerTest) {}

TEST_F(GpuDisjointTimerTracerTest, DisjointTimerBasicTracerTest) {}

TEST_F(InvalidTimerTracerTest, InvalidTimerDisabledTest) {}

TEST_F(GpuDisjointTimerTracerTest, DisjointTimerDisabledTest) {}

TEST_F(InvalidTimerTracerTest, InvalidTimerTracerMarkersTest) {}

TEST_F(GpuDisjointTimerTracerTest, DisjointTimerBasicTracerMarkersTest) {}

TEST_F(InvalidTimerTracerTest, InvalidTimerOngoingTracerMarkersTest) {}

TEST_F(GpuDisjointTimerTracerTest, DisjointTimerOngoingTracerMarkersTest) {}

TEST_F(GpuDisjointTimerTracerTest, DisjointTimerDisjointTraceTest) {}

TEST_F(GpuDisjointTimerTracerTest, NonrelevantDisjointTraceTest) {}

class GPUTracerTest : public GpuServiceTest {};

TEST_F(GPUTracerTest, IsTracingTest) {}
// Test basic functionality of the GPUTracerTester.
TEST_F(GPUTracerTest, DecodeTest) {}

TEST_F(GPUTracerTest, TraceDuringDecodeTest) {}

TEST_F(GpuDisjointTimerTracerTest, MultipleClientsDisjointTest) {}

}  // namespace
}  // namespace gles2
}  // namespace gpu