Back to index

bamf  0.2.120
test-matcher.c
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2009 Canonical Ltd
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 3 as 
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015  *
00016  * Authored by Neil Jagdish Patel <neil.patel@canonical.com>
00017  *
00018  */
00019 
00020 #include <glib.h>
00021 #include <stdlib.h>
00022 #include "bamf-matcher.h"
00023 
00024 static void test_allocation          (void);
00025 
00026 void
00027 test_matcher_create_suite (void)
00028 {
00029 #define DOMAIN "/Matcher"
00030 
00031   g_test_add_func (DOMAIN"/Allocation", test_allocation);
00032 }
00033 
00034 static void
00035 test_allocation (void)
00036 {
00037   BamfMatcher    *matcher;
00038 
00039   /* Check it allocates */
00040   matcher = bamf_matcher_get_default ();
00041   g_assert (BAMF_IS_MATCHER (matcher));
00042 }