/usr/include/cutter/gdkcutter-pixbuf/gdkcut-pixbuf-assertions.h is in libgdkcutter-pixbuf-dev 1.1.7-1.2ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright (C) 2008-2009 Kouhei Sutou <kou@cozmixng.org>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __GDKCUT_PIXBUF_ASSERTIONS_H__
#define __GDKCUT_PIXBUF_ASSERTIONS_H__
#include <glib.h>
#include <gdkcutter-pixbuf/gdkcut-pixbuf-assertions-helper.h>
G_BEGIN_DECLS
/**
* SECTION: gdkcut-pixbuf-assertions
* @title: Assertions with gdk-pixbuf support
* @short_description: Checks that your program works as you
* expect with gdk-pixbuf support.
*
*/
/**
* gdkcut_pixbuf_assert_equal:
* @expected: an expected #GdkPixbuf.
* @actual: an actual #GdkPixbuf.
* @threshold: an threshold used for detecting pixel difference.
* @...: optional message. See cut_message() for details.
*
* Passes if @expected == @actual. If difference of each
* corresponding pixel value is within threshold, @expected
* and @actual are treated as equal image.
*
* If threshold is 3, pixel value of @expected at (1, 1) is
* 127 and pixel value of @actual at (1, 1) is 131, @actual
* doesn't equals to @expected. If pixel value of @actual at
* (1, 1) is 130, @actual may equal to @expected. (All other
* corresponding pixel values are needed to fill this
* condition.)
*
* Since: 1.0.5
*/
#define gdkcut_pixbuf_assert_equal(expected, actual, threshold, ...) do \
{ \
cut_trace_with_info_expression( \
cut_test_with_user_message( \
gdkcut_pixbuf_assert_equal_helper(expected, actual, \
threshold, \
#expected, #actual, \
#threshold), \
__VA_ARGS__), \
gdkcut_pixbuf_assert_equal(expected, actual, threshold)); \
} while (0)
G_END_DECLS
#endif /* __GDKCUT_PIXBUF_ASSERTIONS_H__ */
/*
vi:nowrap:ai:expandtab:sw=4
*/
|