chromium/third_party/angle/src/tests/gl_tests/TimerQueriesTest.cpp

//
// Copyright 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// TimerQueriesTest.cpp
//   Various tests for EXT_disjoint_timer_query functionality and validation
//

#include "test_utils/ANGLETest.h"
#include "test_utils/gl_raii.h"
#include "util/EGLWindow.h"
#include "util/random_utils.h"
#include "util/test_utils.h"

usingnamespaceangle;

class TimerQueriesTest : public ANGLETest<>
{};

// Test that all proc addresses are loadable
TEST_P(TimerQueriesTest, ProcAddresses)
{}

// Tests the time elapsed query
TEST_P(TimerQueriesTest, TimeElapsed)
{}

// Tests time elapsed for a non draw call (texture upload)
TEST_P(TimerQueriesTest, TimeElapsedTextureTest)
{}

// Tests validation of query functions with respect to elapsed time query
TEST_P(TimerQueriesTest, TimeElapsedValidationTest)
{}

// Tests timer queries operating under multiple EGL contexts with mid-query switching
TEST_P(TimerQueriesTest, TimeElapsedMulticontextTest)
{}

// Tests GPU timestamp functionality
TEST_P(TimerQueriesTest, Timestamp)
{}

void getQueryResult(GLuint queryObjectName, GLuint64 *result)
{}

class TimerstampQueriesTest : public TimerQueriesTest
{};

// Tests getting timestamps via glGetQueryObjectui64vEXT
TEST_P(TimerstampQueriesTest, TimestampBasic)
{}

class TimerQueriesTestES3 : public TimerQueriesTest
{};

// Tests getting timestamps via glGetInteger64v
TEST_P(TimerQueriesTestES3, TimestampGetInteger64)
{}

ANGLE_INSTANTIATE_TEST_ES2_AND();

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST();

ANGLE_INSTANTIATE_TEST_ES2_AND_ES3();

GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST();
ANGLE_INSTANTIATE_TEST_ES3();