diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/anachronistic/apns/client_mock.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/anachronistic/apns/client_mock.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Godeps/_workspace/src/github.com/anachronistic/apns/client_mock.go b/Godeps/_workspace/src/github.com/anachronistic/apns/client_mock.go deleted file mode 100644 index 29a1f4b23..000000000 --- a/Godeps/_workspace/src/github.com/anachronistic/apns/client_mock.go +++ /dev/null @@ -1,21 +0,0 @@ -package apns - -import "github.com/stretchr/testify/mock" - -type MockClient struct { - mock.Mock -} - -func (m *MockClient) ConnectAndWrite(resp *PushNotificationResponse, payload []byte) (err error) { - return m.Called(resp, payload).Error(0) -} - -func (m *MockClient) Send(pn *PushNotification) (resp *PushNotificationResponse) { - r := m.Called(pn).Get(0) - if r != nil { - if r, ok := r.(*PushNotificationResponse); ok { - return r - } - } - return nil -} |