~charlesk/indicator-session/lp-1085100

« back to all changes in this revision

Viewing changes to tests/test-service.cc

  • Committer: Charles Kerr
  • Date: 2012-05-02 18:10:52 UTC
  • mfrom: (254.1.5 gtest)
  • Revision ID: charles.kerr@canonical.com-20120502181052-vj12zuzjby7f28ph
merge lp:~charlesk/indicator-session/gtest to add Google Test + libdbustest

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright 2012 Canonical Ltd.
 
3
 
 
4
Authors:
 
5
    Charles Kerr <charles.kerr@canonical.com>
 
6
 
 
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.
 
10
 
 
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.
 
15
 
 
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/>.
 
18
*/
 
19
 
 
20
#include <libindicator/indicator-service-test.h>
 
21
 
 
22
#include "dbus-shared-names.h"
 
23
 
 
24
/***
 
25
****
 
26
***/
 
27
 
 
28
/**
 
29
 * Fixture class for testing indicator-session-service with Google Test.
 
30
 */
 
31
class SessionServiceTest: public IndicatorServiceTest
 
32
{
 
33
  public:
 
34
    virtual ~SessionServiceTest() {}
 
35
    SessionServiceTest(): IndicatorServiceTest(INDICATOR_SESSION_DBUS_NAME,
 
36
                                               INDICATOR_SESSION_DBUS_OBJECT,
 
37
                                               INDICATOR_SERVICE_PATH) { }
 
38
  public:
 
39
    virtual void SetUp() {
 
40
      wait_seconds(1);
 
41
      IndicatorServiceTest::SetUp();
 
42
    }
 
43
    virtual void TearDown() {
 
44
      IndicatorServiceTest::TearDown();
 
45
    }
 
46
};
 
47
 
 
48
 
 
49
/**
 
50
 * Basic sanity test to see if we can account for all our menuitems.
 
51
 */
 
52
TEST_F(SessionServiceTest, HelloWorld)
 
53
{
 
54
  ASSERT_TRUE(true);
 
55
}
 
56