]> git.sesse.net Git - movit/blobdiff - dither_effect_test.cpp
Fix some formatting messups.
[movit] / dither_effect_test.cpp
index 81f6a2402d6d677e25c2e22727308ead45c491fd..8801aa0f94022697976462f44ef3fb2c84f139ac 100644 (file)
@@ -1,9 +1,14 @@
 // Unit tests for DitherEffect.
 
+#include <GL/glew.h>
 #include <math.h>
 
-#include "test_util.h"
+#include "effect_chain.h"
 #include "gtest/gtest.h"
+#include "image_format.h"
+#include "test_util.h"
+
+namespace movit {
 
 TEST(DitherEffectTest, NoDitherOnExactValues) {
        const int size = 4;
@@ -50,5 +55,7 @@ TEST(DitherEffectTest, SinusoidBelowOneLevelComesThrough) {
                sum += 2.0 * (int(out_data[i]) - 0.2*255.0) * sin(i * frequency);
        }
 
-       EXPECT_NEAR(amplitude, sum / (size * 255.0f), 1e-5);
+       EXPECT_NEAR(amplitude, sum / (size * 255.0f), 1.1e-5);
 }
+
+}  // namespace movit