#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
usingnamespaceangle;
class EGLPrintEGLinfoTest : public ANGLETest<>
{ … };
namespace
{
std::vector<std::string> ParseExtensions(const char *extensions)
{ … }
EGLint GetAttrib(EGLDisplay display, EGLConfig config, EGLint attrib)
{ … }
const char *GetEGLString(EGLDisplay display, EGLint name)
{ … }
const char *GetGLString(EGLint name)
{ … }
}
TEST_P(EGLPrintEGLinfoTest, PrintEGLInfo)
{ … }
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)
{ … }
TEST_P(EGLPrintEGLinfoTest, PrintGLESCapabilities)
{ … }
TEST_P(EGLPrintEGLinfoTest, PrintConfigInfo)
{ … }
ANGLE_INSTANTIATE_TEST(…);
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(…);