2017-10-11 13:52:11 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2018-06-08 11:29:50 +00:00
|
|
|
// Source: notifications/push/fcm/client.go
|
2017-10-11 13:52:11 +00:00
|
|
|
|
|
|
|
// Package fcm is a generated GoMock package.
|
|
|
|
package fcm
|
|
|
|
|
|
|
|
import (
|
|
|
|
go_fcm "github.com/NaySoftware/go-fcm"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
reflect "reflect"
|
|
|
|
)
|
|
|
|
|
2018-04-05 13:14:47 +00:00
|
|
|
// MockFirebaseClient is a mock of FirebaseClient interface
|
|
|
|
type MockFirebaseClient struct {
|
2017-10-11 13:52:11 +00:00
|
|
|
ctrl *gomock.Controller
|
2018-04-05 13:14:47 +00:00
|
|
|
recorder *MockFirebaseClientMockRecorder
|
2017-10-11 13:52:11 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 13:14:47 +00:00
|
|
|
// MockFirebaseClientMockRecorder is the mock recorder for MockFirebaseClient
|
|
|
|
type MockFirebaseClientMockRecorder struct {
|
|
|
|
mock *MockFirebaseClient
|
2017-10-11 13:52:11 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 13:14:47 +00:00
|
|
|
// NewMockFirebaseClient creates a new mock instance
|
|
|
|
func NewMockFirebaseClient(ctrl *gomock.Controller) *MockFirebaseClient {
|
|
|
|
mock := &MockFirebaseClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockFirebaseClientMockRecorder{mock}
|
2017-10-11 13:52:11 +00:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
2018-04-05 13:14:47 +00:00
|
|
|
func (m *MockFirebaseClient) EXPECT() *MockFirebaseClientMockRecorder {
|
2017-10-11 13:52:11 +00:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewFcmRegIdsMsg mocks base method
|
2018-04-13 13:10:37 +00:00
|
|
|
func (m *MockFirebaseClient) NewFcmRegIdsMsg(tokens []string, body interface{}) *go_fcm.FcmClient {
|
|
|
|
ret := m.ctrl.Call(m, "NewFcmRegIdsMsg", tokens, body)
|
2017-10-11 13:52:11 +00:00
|
|
|
ret0, _ := ret[0].(*go_fcm.FcmClient)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewFcmRegIdsMsg indicates an expected call of NewFcmRegIdsMsg
|
2018-04-13 13:10:37 +00:00
|
|
|
func (mr *MockFirebaseClientMockRecorder) NewFcmRegIdsMsg(tokens, body interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewFcmRegIdsMsg", reflect.TypeOf((*MockFirebaseClient)(nil).NewFcmRegIdsMsg), tokens, body)
|
2017-10-11 13:52:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Send mocks base method
|
2018-04-05 13:14:47 +00:00
|
|
|
func (m *MockFirebaseClient) Send() (*go_fcm.FcmResponseStatus, error) {
|
2017-10-11 13:52:11 +00:00
|
|
|
ret := m.ctrl.Call(m, "Send")
|
|
|
|
ret0, _ := ret[0].(*go_fcm.FcmResponseStatus)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Send indicates an expected call of Send
|
2018-04-05 13:14:47 +00:00
|
|
|
func (mr *MockFirebaseClientMockRecorder) Send() *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockFirebaseClient)(nil).Send))
|
2017-10-11 13:52:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetNotificationPayload mocks base method
|
2018-04-13 13:10:37 +00:00
|
|
|
func (m *MockFirebaseClient) SetNotificationPayload(payload *go_fcm.NotificationPayload) *go_fcm.FcmClient {
|
|
|
|
ret := m.ctrl.Call(m, "SetNotificationPayload", payload)
|
2017-10-11 13:52:11 +00:00
|
|
|
ret0, _ := ret[0].(*go_fcm.FcmClient)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetNotificationPayload indicates an expected call of SetNotificationPayload
|
2018-04-13 13:10:37 +00:00
|
|
|
func (mr *MockFirebaseClientMockRecorder) SetNotificationPayload(payload interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNotificationPayload", reflect.TypeOf((*MockFirebaseClient)(nil).SetNotificationPayload), payload)
|
2017-10-11 13:52:11 +00:00
|
|
|
}
|