// // 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. // // EGLCreateContectAttribsTest.cpp: // This suite of test cases test invalid attributes passed to eglCreateContext // Section 3.7.1 of EGL 1.5 specification provides error cases // #include <gtest/gtest.h> #include <vector> #include "test_utils/ANGLETest.h" usingnamespaceangle; class EGLCreateContextAttribsTest : public ANGLETest<> { … }; // Specify invalid client version in the attributes to eglCreateContext // and verify EGL_BAD_ATTRIBUTE TEST_P(EGLCreateContextAttribsTest, InvalidClientVersion) { … } // Choose config that doesn't support requested client version, and verify that eglCreateContext // sets EGL_BAD_MATCH TEST_P(EGLCreateContextAttribsTest, IncompatibleConfig) { … } // EGL_IMG_context_priority - set and get attribute TEST_P(EGLCreateContextAttribsTest, IMGContextPriorityExtension) { … } GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(…); ANGLE_INSTANTIATE_TEST(…);