status-go/geth/notification/fcm/client_mock.go

72 lines
2.5 KiB
Go
Raw Normal View History

2017-10-11 13:52:11 +00:00
// Code generated by MockGen. DO NOT EDIT.
// Source: geth/notification/fcm/client.go
// 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"
)
2017-10-11 13:59:58 +00:00
// MockfirebaseClient is a mock of firebaseClient interface
type MockfirebaseClient struct {
2017-10-11 13:52:11 +00:00
ctrl *gomock.Controller
2017-10-11 13:59:58 +00:00
recorder *MockfirebaseClientMockRecorder
2017-10-11 13:52:11 +00:00
}
2017-10-11 13:59:58 +00:00
// MockfirebaseClientMockRecorder is the mock recorder for MockfirebaseClient
type MockfirebaseClientMockRecorder struct {
mock *MockfirebaseClient
2017-10-11 13:52:11 +00:00
}
2017-10-11 13:59:58 +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
2017-10-11 13:59:58 +00:00
func (m *MockfirebaseClient) EXPECT() *MockfirebaseClientMockRecorder {
2017-10-11 13:52:11 +00:00
return m.recorder
}
// NewFcmRegIdsMsg mocks base method
2017-10-11 13:59:58 +00:00
func (m *MockfirebaseClient) NewFcmRegIdsMsg(tokens []string, body interface{}) *go_fcm.FcmClient {
2017-10-11 13:52:11 +00:00
ret := m.ctrl.Call(m, "NewFcmRegIdsMsg", tokens, body)
ret0, _ := ret[0].(*go_fcm.FcmClient)
return ret0
}
// NewFcmRegIdsMsg indicates an expected call of NewFcmRegIdsMsg
2017-10-11 13:59:58 +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
2017-10-11 13:59:58 +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
2017-10-11 13:59:58 +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
2017-10-11 13:59:58 +00:00
func (m *MockfirebaseClient) SetNotificationPayload(payload *go_fcm.NotificationPayload) *go_fcm.FcmClient {
2017-10-11 13:52:11 +00:00
ret := m.ctrl.Call(m, "SetNotificationPayload", payload)
ret0, _ := ret[0].(*go_fcm.FcmClient)
return ret0
}
// SetNotificationPayload indicates an expected call of SetNotificationPayload
2017-10-11 13:59:58 +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
}