--- /dev/null
+#include <SDL/SDL.h>
+#include "gtest/gtest.h"
+
+int main(int argc, char **argv) {
+ // Set up an OpenGL context using SDL.
+ SDL_Init(SDL_INIT_VIDEO);
+ SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
+ SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 0);
+ SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
+ SDL_SetVideoMode(1280, 720, 0, SDL_OPENGL);
+ SDL_WM_SetCaption("OpenGL window for unit test", NULL);
+
+ testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}