Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCMClientMock ¶
type GCMClientMock struct {
MessagesSent []gcm.XMPPMessage
}
GCMClientMock should be used for tests that need to send xmpp messages to GCM
func NewGCMClientMock ¶
func NewGCMClientMock() *GCMClientMock
NewGCMClientMock creates a new instance
func (*GCMClientMock) SendXMPP ¶
func (m *GCMClientMock) SendXMPP(msg gcm.XMPPMessage) (string, int, error)
SendXMPP records the sent message in the MessagesSent collection
Click to show internal directories.
Click to hide internal directories.