forked from googlearchive/go-gcm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxmppc_mock.go
122 lines (96 loc) · 2.18 KB
/
xmppc_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
package gcm
import "github.com/stretchr/testify/mock"
import "time"
// xmppCMock is an autogenerated mock type for the xmppC type
type xmppCMock struct {
mock.Mock
}
// Close provides a mock function with given fields: graceful
func (_m *xmppCMock) Close(graceful bool) error {
ret := _m.Called(graceful)
var r0 error
if rf, ok := ret.Get(0).(func(bool) error); ok {
r0 = rf(graceful)
} else {
r0 = ret.Error(0)
}
return r0
}
// IsClosed provides a mock function with given fields:
func (_m *xmppCMock) IsClosed() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// Listen provides a mock function with given fields: h
func (_m *xmppCMock) Listen(h MessageHandler) error {
ret := _m.Called(h)
var r0 error
if rf, ok := ret.Get(0).(func(MessageHandler) error); ok {
r0 = rf(h)
} else {
r0 = ret.Error(0)
}
return r0
}
// Ping provides a mock function with given fields: timeout
func (_m *xmppCMock) Ping(timeout time.Duration) error {
ret := _m.Called(timeout)
var r0 error
if rf, ok := ret.Get(0).(func(time.Duration) error); ok {
r0 = rf(timeout)
} else {
r0 = ret.Error(0)
}
return r0
}
// Send provides a mock function with given fields: m
func (_m *xmppCMock) Send(m XMPPMessage) (string, int, error) {
ret := _m.Called(m)
var r0 string
if rf, ok := ret.Get(0).(func(XMPPMessage) string); ok {
r0 = rf(m)
} else {
r0 = ret.Get(0).(string)
}
var r1 int
if rf, ok := ret.Get(1).(func(XMPPMessage) int); ok {
r1 = rf(m)
} else {
r1 = ret.Get(1).(int)
}
var r2 error
if rf, ok := ret.Get(2).(func(XMPPMessage) error); ok {
r2 = rf(m)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}
// ID provides a mock function with given fields:
func (_m *xmppCMock) ID() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// JID provides a mock function with given fields:
func (_m *xmppCMock) JID() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}