Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / extension / io / png_write_test.cpp
1 //
2 // Copyright 2013 Christian Henning
3 //
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
7 //
8 //#define BOOST_TEST_MODULE png_read_test_module
9 #define BOOST_GIL_IO_ADD_FS_PATH_SUPPORT
10 #define BOOST_GIL_IO_ENABLE_GRAY_ALPHA
11 #define BOOST_FILESYSTEM_VERSION 3
12
13 #include <boost/gil/extension/io/png.hpp>
14
15 #include <boost/test/unit_test.hpp>
16
17 #include <cstdint>
18 #include <iostream>
19
20 #include "color_space_write_test.hpp"
21 #include "paths.hpp"
22 #include "scanline_read_test.hpp"
23
24 using namespace std;
25 using namespace boost;
26 using namespace gil;
27 using namespace boost::gil::detail;
28
29 using tag_t = png_tag;
30
31 BOOST_AUTO_TEST_SUITE( gil_io_png_tests )
32
33 BOOST_AUTO_TEST_CASE( rgb_color_space_write_test )
34 {
35     color_space_write_test< tag_t >( png_out + "rgb_color_space_test.png"
36                                    , png_out + "bgr_color_space_test.png"
37                                    );
38 }
39
40 BOOST_AUTO_TEST_SUITE_END()