2
Copyright 2012 Canonical Ltd.
5
Charles Kerr <charles.kerr@canonical.com>
7
This program is free software: you can redistribute it and/or modify it
8
under the terms of the GNU General Public License version 3, as published
9
by the Free Software Foundation.
11
This program is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranties of
13
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
PURPOSE. See the GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License along
17
with this program. If not, see <http://www.gnu.org/licenses/>.
20
#include <libindicator/indicator-service-test.h>
22
#include "dbus-shared-names.h"
28
static const char * the_executable = NULL;
31
* Fixture class for testing indicator-session-service with Google Test.
33
class SessionServiceTest: public IndicatorServiceTest
36
virtual ~SessionServiceTest() {}
37
SessionServiceTest(): IndicatorServiceTest(INDICATOR_SESSION_DBUS_NAME,
38
INDICATOR_SESSION_DBUS_OBJECT,
41
virtual void SetUp() {
43
IndicatorServiceTest::SetUp();
45
virtual void TearDown() {
46
IndicatorServiceTest::TearDown();
52
* Basic sanity test to see if we can account for all our menuitems.
54
TEST_F(SessionServiceTest, HelloWorld)
61
main (int argc, char *argv[])
64
fprintf (stderr, "Usage: appname /path/to/indicator-session-service");
67
the_executable = argv[1];
68
fprintf (stdout, "executable is '%s'\n", the_executable);
69
::testing::InitGoogleTest(&argc, argv);
70
return RUN_ALL_TESTS();