// // Copyright 2018 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. // // ClientStateEnable.cpp: Tests basic usage of gl(Enable|Disable)ClientState. #include "test_utils/ANGLETest.h" #include "test_utils/gl_raii.h" #include <vector> usingnamespaceangle; class ClientStateEnable : public ANGLETest<> { … }; // Checks that all client vertex array states are disabled to start with. TEST_P(ClientStateEnable, InitialState) { … } // Checks that glEnableClientState sets the state to be enabled, // and glDisableClientState sets the state to be disabled. TEST_P(ClientStateEnable, EnableState) { … } // Negative test: Checks that invalid enums for client state generate the proper GL error. TEST_P(ClientStateEnable, Negative) { … } // Checks that enable/disable states are different if we are in different client texture unit // states. TEST_P(ClientStateEnable, TextureUnit) { … } ANGLE_INSTANTIATE_TEST_ES1(…);