Configure Google Tests to run against multiple renderers/GLES versions
BUG=angle:611
Change-Id: I7d43612171c439045038db9ae82fd8716c0b31c6
Reviewed-on: https://chromium-review.googlesource.com/220400
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Tested-by: Austin Kinross <aukinros@microsoft.com>
diff --git a/tests/angle_tests/PBOExtensionTest.cpp b/tests/angle_tests/PBOExtensionTest.cpp
index 7dabc93..8567715 100755
--- a/tests/angle_tests/PBOExtensionTest.cpp
+++ b/tests/angle_tests/PBOExtensionTest.cpp
@@ -1,11 +1,15 @@
#include "ANGLETest.h"
+// Use this to select which configurations (e.g. which renderer, which GLES major version) these tests should be run against.
+typedef ::testing::Types<TFT<Gles::Two, Rend::D3D11>, TFT<Gles::Two, Rend::D3D9>> TestFixtureTypes;
+TYPED_TEST_CASE(PBOExtensionTest, TestFixtureTypes);
+
+template<typename T>
class PBOExtensionTest : public ANGLETest
{
protected:
- PBOExtensionTest()
+ PBOExtensionTest() : ANGLETest(T::GetGlesMajorVersion(), T::GetRequestedRenderer())
{
- setClientVersion(2);
setWindowWidth(32);
setWindowHeight(32);
setConfigRedBits(8);
@@ -73,7 +77,7 @@
GLuint mPositionVBO;
};
-TEST_F(PBOExtensionTest, PBOWithOtherTarget)
+TYPED_TEST(PBOExtensionTest, PBOWithOtherTarget)
{
if (extensionEnabled("NV_pixel_buffer_object"))
{
@@ -101,7 +105,7 @@
EXPECT_GL_NO_ERROR();
}
-TEST_F(PBOExtensionTest, PBOWithExistingData)
+TYPED_TEST(PBOExtensionTest, PBOWithExistingData)
{
if (extensionEnabled("NV_pixel_buffer_object"))
{