2 #include "gtest/gtest.h"
4 int main(int argc, char **argv) {
5 // Set up an OpenGL context using SDL.
6 SDL_Init(SDL_INIT_VIDEO);
7 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
8 SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 0);
9 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
10 SDL_SetVideoMode(32, 32, 0, SDL_OPENGL);
11 SDL_WM_SetCaption("OpenGL window for unit test", NULL);
13 testing::InitGoogleTest(&argc, argv);
14 int err = RUN_ALL_TESTS();