Use value-paramaterized tests instead of by type.
This should fix our non-standard template use, which causes compile
errors for the tests on GCC/Clang.
BUG=angleproject:997
Change-Id: Id1bb15231eda445f37e53a5b33d4684ec6618d8e
Reviewed-on: https://chromium-review.googlesource.com/269858
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Tested-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/tests/end2end_tests/CubeMapTextureTest.cpp b/src/tests/end2end_tests/CubeMapTextureTest.cpp
index b1561d9..0e52dd9 100644
--- a/src/tests/end2end_tests/CubeMapTextureTest.cpp
+++ b/src/tests/end2end_tests/CubeMapTextureTest.cpp
@@ -1,13 +1,17 @@
+//
+// Copyright 2015 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.
+//
+
#include "ANGLETest.h"
-// Use this to select which configurations (e.g. which renderer, which GLES major version) these tests should be run against.
-ANGLE_TYPED_TEST_CASE(CubeMapTextureTest, ES2_D3D11, ES2_D3D11_FL9_3);
+using namespace angle;
-template<typename T>
class CubeMapTextureTest : public ANGLETest
{
-protected:
- CubeMapTextureTest() : ANGLETest(T::GetGlesMajorVersion(), T::GetPlatform())
+ protected:
+ CubeMapTextureTest()
{
setWindowWidth(256);
setWindowHeight(256);
@@ -71,7 +75,7 @@
};
// Verify that rendering to the faces of a cube map consecutively will correctly render to each face.
-TYPED_TEST(CubeMapTextureTest, RenderToFacesConsecutively)
+TEST_P(CubeMapTextureTest, RenderToFacesConsecutively)
{
const GLfloat faceColors[] =
{
@@ -123,3 +127,6 @@
EXPECT_GL_NO_ERROR();
}
+
+// Use this to select which configurations (e.g. which renderer, which GLES major version) these tests should be run against.
+ANGLE_INSTANTIATE_TEST(CubeMapTextureTest, ES2_D3D11(), ES2_D3D11_FL9_3());