~pete-woods/libqtdbustest/valgrind-present-1263925

« back to all changes in this revision

Viewing changes to tests/main.cpp

  • Committer: Pete Woods
  • Date: 2013-08-01 15:17:32 UTC
  • Revision ID: pete.woods@canonical.com-20130801151732-ee1g57uzg8ycaikg
Add code to construct gmenumodels

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (C) 2013 Canonical, Ltd.
3
3
 *
4
 
 * This program is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License as published by
6
 
 * the Free Software Foundation; version 3.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 3, as published
 
6
 * by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
11
 * PURPOSE.  See the GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License along
 
14
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
 *
16
16
 * Author: Pete Woods <pete.woods@canonical.com>
17
17
 */
21
21
#include <QCoreApplication>
22
22
#include <gtest/gtest.h>
23
23
 
 
24
#include <InitGlib.h>
24
25
#include <libqtdbusmock/DBusMock.h>
25
26
 
26
27
using namespace QtDBusMock;
34
35
        textdomain(GETTEXT_PACKAGE);
35
36
 
36
37
        QCoreApplication application(argc, argv);
 
38
        InitGlib::init();
37
39
 
38
40
        DBusMock::registerMetaTypes();
39
41