chromium/third_party/angle/src/tests/egl_tests/EGLPrintEGLinfoTest.cpp

//
// Copyright 2019 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.
//
// EGLPrintEGLinfoTest.cpp:
//   This test prints out the extension strings, configs and their attributes
//

#include <gtest/gtest.h>

#include "common/string_utils.h"
#include "test_utils/ANGLETest.h"
#include "test_utils/runner/TestSuite.h"

#if defined(ANGLE_HAS_RAPIDJSON)
#    include "common/serializer/JsonSerializer.h"
#endif  // defined(ANGLE_HAS_RAPIDJSON)

usingnamespaceangle;

class EGLPrintEGLinfoTest : public ANGLETest<>
{};

namespace
{
// Parse space separated extension string into a vector of strings
std::vector<std::string> ParseExtensions(const char *extensions)
{}

// Query a EGL attribute
EGLint GetAttrib(EGLDisplay display, EGLConfig config, EGLint attrib)
{}

// Query a egl string
const char *GetEGLString(EGLDisplay display, EGLint name)
{}

// Query a GL string
const char *GetGLString(EGLint name)
{}

}  // namespace

// Print the EGL strings and extensions
TEST_P(EGLPrintEGLinfoTest, PrintEGLInfo)
{}

// Print the GL strings and extensions
TEST_P(EGLPrintEGLinfoTest, PrintGLInfo)
{}

#define QUERY_HELPER(enumValue, enumString, stream)

#define QUERY_ARRAY_HELPER(enumValue, enumString, size, stream)

#define QUERY_INDEXED_HELPER(enumValue, enumString, index, stream)

#define QUERY_AND_LOG_CAPABILITY(enum, stream)

#define QUERY_AND_LOG_CAPABILITY_ARRAY(enum, size, stream)

#define QUERY_AND_LOG_CAPABILITY_INDEXED(enum, index, stream)

static void LogGles2Capabilities(std::ostream &stream)
{}

static void LogGles3Capabilities(std::ostream &stream)
{}

static void LogGles31Capabilities(std::ostream &stream)
{}

static void LogGles32Capabilities(std::ostream &stream)
{}

// Prints GLES Capabilities listed at
// https://opengles.gpuinfo.org/listcapabilities.php
// in CSV format
TEST_P(EGLPrintEGLinfoTest, PrintGLESCapabilities)
{}

// Print the EGL configs with attributes
TEST_P(EGLPrintEGLinfoTest, PrintConfigInfo)
{}

ANGLE_INSTANTIATE_TEST();

// This test suite is not instantiated on some OSes.
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST();