X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=alpha_multiplication_effect_test.cpp;h=2aa9b6d98949d49dc9b554071e8474583e381487;hp=eab4b25e737955aeeadcff94858177ac856ea417;hb=61e2a7671f7b22227dcdc34dd303ae4fcc802aaa;hpb=caa05550e868db406e4b54e69d60b5573f59cb60 diff --git a/alpha_multiplication_effect_test.cpp b/alpha_multiplication_effect_test.cpp index eab4b25..2aa9b6d 100644 --- a/alpha_multiplication_effect_test.cpp +++ b/alpha_multiplication_effect_test.cpp @@ -1,7 +1,13 @@ // Unit tests for AlphaMultiplicationEffect. -#include "test_util.h" +#include + +#include "effect_chain.h" #include "gtest/gtest.h" +#include "image_format.h" +#include "test_util.h" + +namespace movit { TEST(AlphaMultiplicationEffectTest, SimpleTest) { const int size = 3; @@ -17,7 +23,9 @@ TEST(AlphaMultiplicationEffectTest, SimpleTest) { }; float out_data[4 * size]; EffectChainTester tester(data, 1, size, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_LINEAR); - tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR, OUTPUT_ALPHA_PREMULTIPLIED); + tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR, OUTPUT_ALPHA_FORMAT_PREMULTIPLIED); expect_equal(expected_data, out_data, 4, size); } + +} // namespace movit