• Maksim Shabunin's avatar
    Rewritten some tests in videoio and imgcodecs modules · 87b569d8
    Maksim Shabunin authored
    general:
    - all iterative tests have been replaced with parameterized tests
    - old-style try..catch tests have been modified to use EXPECT_/ASSERT_ gtest macros
    - added temporary files cleanup
    - modified MatComparator error message formatting
    
    imgcodecs:
    - test_grfmt.cpp split to test_jpg.cpp, test_png.cpp, test_tiff.cpp, etc.
    
    videoio:
    - added public HAVE_VIDEO_INPUT, HAVE_VIDEO_OUTPUT definitions to cvconfig.h
    - built-in MotionJPEG codec could not be tested on some platforms (read_write test was disabled if ffmpeg is off, encoding/decoding was handled by ffmpeg otherwise).
    - image-related tests moved to imgcodecs (Videoio_Image)
    - several property get/set tests have been combined into one
    - added MotionJPEG test video to opencv_extra
    87b569d8
test_precomp.hpp 586 Bytes
#ifdef __GNUC__
#  pragma GCC diagnostic ignored "-Wmissing-declarations"
#  if defined __clang__ || defined __APPLE__
#    pragma GCC diagnostic ignored "-Wmissing-prototypes"
#    pragma GCC diagnostic ignored "-Wextra"
#  endif
#endif

#ifndef __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__

#include "opencv2/ts.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgproc/imgproc_c.h"

#include "opencv2/core/private.hpp"

#include <fstream>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <iterator>

#endif