Skip to content

Commit

Permalink
ENH: Update FrequencyIterators GTest for factory registration setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tbirdso committed Jan 6, 2022
1 parent 87ebb47 commit 0e64245
Showing 1 changed file with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@
#include "itkTestingComparisonImageFilter.h"
#include "itkTestingMacros.h"

#include "itkTestDriverIncludeRequiredFactories.h"

namespace
{
class FrequencyIterators : public ::testing::Test
{
public:
FrequencyIterators() = default;
~FrequencyIterators() override = default;

protected:
void
SetUp() override
{
RegisterRequiredFactories();
}
};
} // namespace

template <typename TOutputImageType>
static typename TOutputImageType::Pointer
CreateImage(unsigned int size)
Expand Down Expand Up @@ -195,7 +214,7 @@ compareAllTypesOfIterators(typename TImageType::Pointer image, double difference
EXPECT_TRUE(fullAndHermitian);
}

TEST(FrequencyIterators, Even3D)
TEST_F(FrequencyIterators, Even3D)
{
constexpr unsigned int ImageDimension = 3;
using PixelType = float;
Expand All @@ -205,7 +224,7 @@ TEST(FrequencyIterators, Even3D)
compareAllTypesOfIterators<ImageType>(image, differenceHermitianThreshold);
}

TEST(FrequencyIterators, Even2D)
TEST_F(FrequencyIterators, Even2D)
{
constexpr unsigned int ImageDimension = 2;
using PixelType = float;
Expand All @@ -215,7 +234,7 @@ TEST(FrequencyIterators, Even2D)
compareAllTypesOfIterators<ImageType>(image, differenceHermitianThreshold);
}

TEST(FrequencyIterators, Odd3D)
TEST_F(FrequencyIterators, Odd3D)
{
constexpr unsigned int ImageDimension = 3;
using PixelType = float;
Expand All @@ -225,7 +244,7 @@ TEST(FrequencyIterators, Odd3D)
compareAllTypesOfIterators<ImageType>(image, differenceHermitianThreshold);
}

TEST(FrequencyIterators, Odd2D)
TEST_F(FrequencyIterators, Odd2D)
{
constexpr unsigned int ImageDimension = 2;
using PixelType = float;
Expand Down

0 comments on commit 0e64245

Please sign in to comment.