//
// Note that this also contains the tests for some of the simpler effects.
-#include <GL/glew.h>
+#include <epoxy/gl.h>
#include <assert.h>
#include "effect.h"
using namespace std;
+namespace movit {
+
TEST(EffectChainTest, EmptyChain) {
float data[] = {
0.0f, 0.25f, 0.3f,
expect_equal(data, out_data, size, size);
}
-extern bool movit_initialized;
-
// Does not use EffectChainTest, so that it can construct an EffectChain without
// a shared ResourcePool (which is also properly destroyed afterwards).
// Also turns on debugging to test that code path.
float out_data[6];
EffectChain chain(width, height);
- movit_initialized = false;
- init_movit(".", MOVIT_DEBUG_ON);
+ movit_debug_level = MOVIT_DEBUG_ON;
ImageFormat format;
format.color_space = COLORSPACE_sRGB;
expect_equal(expected_data, out_data, width, height);
// Reset the debug status again.
- movit_initialized = false;
- init_movit(".", MOVIT_DEBUG_OFF);
+ movit_debug_level = MOVIT_DEBUG_OFF;
}
+
+} // namespace movit