// Unit tests for DeconvolutionSharpenEffect.
-#include "test_util.h"
-#include "gtest/gtest.h"
+#include <math.h>
+#include <stdlib.h>
+
#include "deconvolution_sharpen_effect.h"
+#include "effect_chain.h"
+#include "gtest/gtest.h"
+#include "image_format.h"
+#include "test_util.h"
-TEST(DeconvolutionSharpenEffect, IdentityTransformDoesNothing) {
+TEST(DeconvolutionSharpenEffectTest, IdentityTransformDoesNothing) {
const int size = 4;
float data[size * size] = {
expect_equal(data, out_data, size, size);
}
-TEST(DeconvolutionSharpenEffect, DeconvolvesCircularBlur) {
+TEST(DeconvolutionSharpenEffectTest, DeconvolvesCircularBlur) {
const int size = 13;
// Matches exactly a circular blur kernel with radius 2.0.
expect_equal(expected_data, out_data, size, size, 0.15f, 0.005f);
}
-TEST(DeconvolutionSharpenEffect, DeconvolvesGaussianBlur) {
+TEST(DeconvolutionSharpenEffectTest, DeconvolvesGaussianBlur) {
const int size = 13;
const float sigma = 0.5f;
expect_equal(expected_data, out_data, size, size);
}
-TEST(DeconvolutionSharpenEffect, NoiseAndCorrelationControlsReduceNoiseBoosting) {
+TEST(DeconvolutionSharpenEffectTest, NoiseAndCorrelationControlsReduceNoiseBoosting) {
const int size = 13;
const float sigma = 0.5f;