// Unit tests for MixEffect.
-#include <GL/glew.h>
+#include <epoxy/gl.h>
#include "effect_chain.h"
#include "gtest/gtest.h"
#include "mix_effect.h"
#include "test_util.h"
+namespace movit {
+
TEST(MixEffectTest, FiftyFiftyMix) {
float data_a[] = {
0.0f, 0.25f,
1.0f, 1.0f, 1.0f, 0.7f,
};
- float out_data[4];
+ float out_data[8];
EffectChainTester tester(data_a, 1, 2, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_LINEAR);
Effect *input1 = tester.get_chain()->last_added_effect();
Effect *input2 = tester.add_input(data_b, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_LINEAR);
expect_equal(expected_data, out_data, 2, 2);
}
+
+} // namespace movit