2017-10-09 16:23:09 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: geth/common/notification.go
|
|
|
|
|
|
|
|
// Package common is a generated GoMock package.
|
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
2017-10-23 15:46:51 +00:00
|
|
|
go_fcm "github.com/NaySoftware/go-fcm"
|
2017-10-09 16:23:09 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
reflect "reflect"
|
|
|
|
)
|
|
|
|
|
2017-10-11 13:52:11 +00:00
|
|
|
// MockNotifier is a mock of Notifier interface
|
|
|
|
type MockNotifier struct {
|
2017-10-09 16:23:09 +00:00
|
|
|
ctrl *gomock.Controller
|
2017-10-11 13:52:11 +00:00
|
|
|
recorder *MockNotifierMockRecorder
|
2017-10-09 16:23:09 +00:00
|
|
|
}
|
|
|
|
|
2017-10-11 13:52:11 +00:00
|
|
|
// MockNotifierMockRecorder is the mock recorder for MockNotifier
|
|
|
|
type MockNotifierMockRecorder struct {
|
|
|
|
mock *MockNotifier
|
2017-10-09 16:23:09 +00:00
|
|
|
}
|
|
|
|
|
2017-10-11 13:52:11 +00:00
|
|
|
// NewMockNotifier creates a new mock instance
|
|
|
|
func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier {
|
|
|
|
mock := &MockNotifier{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockNotifierMockRecorder{mock}
|
2017-10-09 16:23:09 +00:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
2017-10-11 13:52:11 +00:00
|
|
|
func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder {
|
2017-10-09 16:23:09 +00:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2017-10-18 20:17:40 +00:00
|
|
|
// Send mocks base method
|
2017-10-23 15:46:51 +00:00
|
|
|
func (m *MockNotifier) Send(body string, payload go_fcm.NotificationPayload, tokens ...string) error {
|
|
|
|
varargs := []interface{}{body, payload}
|
2017-10-11 13:52:11 +00:00
|
|
|
for _, a := range tokens {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
2017-10-18 20:17:40 +00:00
|
|
|
ret := m.ctrl.Call(m, "Send", varargs...)
|
2017-10-09 16:23:09 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2017-10-18 20:17:40 +00:00
|
|
|
// Send indicates an expected call of Send
|
2017-10-23 15:46:51 +00:00
|
|
|
func (mr *MockNotifierMockRecorder) Send(body, payload interface{}, tokens ...interface{}) *gomock.Call {
|
|
|
|
varargs := append([]interface{}{body, payload}, tokens...)
|
2017-10-18 20:17:40 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockNotifier)(nil).Send), varargs...)
|
2017-10-09 16:23:09 +00:00
|
|
|
}
|