1 /* * Copyright (C) 2010 Google, Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * above copyright notice and the following two paragraphs appear in * all copies of this software. * * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE.
3 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
4 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
5 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
6 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
7 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
9 * Google Author(s): Behdad Esfahbod
25 #undef G_DISABLE_ASSERT
28 /* Bugzilla helpers */
31 hb_test_bug (const char *uri_base, unsigned int number)
33 char *s = g_strdup_printf ("%u", number);
35 g_test_bug_base (uri_base);
42 hb_test_bug_freedesktop (unsigned int number)
44 hb_test_bug ("http://bugs.freedesktop.org/", number);
48 hb_test_bug_gnome (unsigned int number)
50 hb_test_bug ("http://bugzilla.gnome.org/", number);
54 hb_test_bug_mozilla (unsigned int number)
56 hb_test_bug ("http://bugzilla.mozilla.org/", number);
60 hb_test_bug_redhat (unsigned int number)
62 hb_test_bug ("http://bugzilla.redhat.com/", number);
68 /* This is too ugly to be public API, but quite handy. */
69 #define HB_TAG_CHAR4(s) (HB_TAG(((const char *) s)[0], \
70 ((const char *) s)[1], \
71 ((const char *) s)[2], \
72 ((const char *) s)[3]))
75 #endif /* HB_TEST_H */