chromium/gpu/command_buffer/service/query_manager_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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include <stddef.h>
#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/common/gles2_cmd_format.h"
#include "gpu/command_buffer/service/error_state_mock.h"
#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h"
#include "gpu/command_buffer/service/gles2_query_manager.h"
#include "gpu/command_buffer/service/gpu_service_test.h"
#include "gpu/command_buffer/service/gpu_tracer.h"
#include "gpu/command_buffer/service/test_helper.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"

_;
InSequence;
Return;
SetArgPointee;

namespace gpu {
namespace gles2 {

class QueryManagerTest : public GpuServiceTest {};

class QueryManagerTimerQueryTest : public QueryManagerTest {};

// GCC requires these declarations, but MSVC requires they not be present
#ifndef COMPILER_MSVC
const uint32_t QueryManagerTest::kSharedMemoryOffset;
const uint32_t QueryManagerTest::kSharedMemory2Offset;
const size_t QueryManagerTest::kSharedBufferSize;
const int32_t QueryManagerTest::kInvalidSharedMemoryId;
const uint32_t QueryManagerTest::kInvalidSharedMemoryOffset;
const uint32_t QueryManagerTest::kInitialResult;
const uint8_t QueryManagerTest::kInitialMemoryValue;
#endif

TEST_F(QueryManagerTest, Basic) {}

TEST_F(QueryManagerTest, Destroy) {}

TEST_F(QueryManagerTest, QueryBasic) {}

TEST_F(QueryManagerTest, ProcessPendingQuery) {}

TEST_F(QueryManagerTest, ProcessPendingQueries) {}

TEST_F(QueryManagerTest, ExitWithPendingQuery) {}

TEST_F(QueryManagerTimerQueryTest, TimeElapsedQuery) {}

TEST_F(QueryManagerTimerQueryTest, TimeElapsedPauseResume) {}

TEST_F(QueryManagerTimerQueryTest, TimeElapsedDisjoint) {}

TEST_F(QueryManagerTimerQueryTest, TimeStampQuery) {}

TEST_F(QueryManagerTimerQueryTest, TimeStampQueryPending) {}

TEST_F(QueryManagerTimerQueryTest, TimeStampDisjoint) {}

TEST_F(QueryManagerTimerQueryTest, DisjointContinualTest) {}

TEST_F(QueryManagerTest, GetErrorQuery) {}

TEST_F(QueryManagerTest, OcclusionQuery) {}

}  // namespace gles2
}  // namespace gpu