~jonas-drange/ubuntu-push/lp1577723-skiptest

« back to all changes in this revision

Viewing changes to bus/connection/connection_test.go

  • Committer: john.lenton at canonical
  • Date: 2014-01-20 06:23:17 UTC
  • mto: (9.2.2 networkmanager)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: john.lenton@canonical.com-20140120062317-ewkc7j9q6un6j0e1
Added a simple DBus interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 Copyright 2013-2014 Canonical Ltd.
 
3
 
 
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
*/
 
16
 
 
17
package connection
 
18
 
 
19
import (
 
20
        . "launchpad.net/gocheck"
 
21
        "testing"
 
22
)
 
23
 
 
24
// hook up gocheck
 
25
func Test(t *testing.T) { TestingT(t) }
 
26
 
 
27
type BusSuite struct {
 
28
        con Connection
 
29
}
 
30
 
 
31
var _ = Suite(&BusSuite{})
 
32
 
 
33
func (s *BusSuite) SetUpTest(c *C) {
 
34
        s.con = Connection{
 
35
                bus:   nil, // actually should be a mock dbus
 
36
                name:  "name",
 
37
                path:  "path",
 
38
                iface: "iface",
 
39
                log:   nil,
 
40
        }
 
41
}
 
42
 
 
43
// TODO: this is going to remain empty until go-dbus grows some
 
44
// testing amenities (already talked about it with jamesh)