diff options
| author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-16 15:45:58 +0000 |
|---|---|---|
| committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-16 15:45:58 +0000 |
| commit | a8e686eb6cadb74039d3b624ece0d3ccb0684dcc (patch) | |
| tree | 824644b407dbd4e81577b4102550f363c7d721f3 /tests/GLProgramsTest.cpp | |
| parent | bbfa1000e750667540f5660e363ad185b0fa3cdb (diff) | |
Make program unit test run clean and add it to tests program
Review URL: http://codereview.appspot.com/4898049/
git-svn-id: http://skia.googlecode.com/svn/trunk@2121 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/GLProgramsTest.cpp')
| -rw-r--r-- | tests/GLProgramsTest.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp new file mode 100644 index 0000000000..5cacadefe3 --- /dev/null +++ b/tests/GLProgramsTest.cpp @@ -0,0 +1,21 @@ + +/* + * Copyright 2011 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "Test.h" +#include "GrContext.h" +#include "GrGpuGLShaders.h" + +static void GLProgramsTest(skiatest::Reporter* reporter, GrContext* context) { + GrGpuGLShaders* shadersGpu = (GrGpuGLShaders*) context->getGpu(); + REPORTER_ASSERT(reporter, shadersGpu->programUnitTest()); +} + + +#include "TestClassDef.h" +DEFINE_GPUTESTCLASS("GLPrograms", GLProgramsTestClass, GLProgramsTest) + |
