// Code generated by mockery v1.0.0. DO NOT EDIT.

package mocks

import mock "github.com/stretchr/testify/mock"
import protocol "code.justin.tv/websocket-edge/server/protocol"
import sync "sync"

// Connection is an autogenerated mock type for the Connection type
type Connection struct {
	mock.Mock
}

// Forward provides a mock function with given fields: wm
func (_m *Connection) Forward(wm protocol.ServiceToClientMessage) error {
	ret := _m.Called(wm)

	var r0 error
	if rf, ok := ret.Get(0).(func(protocol.ServiceToClientMessage) error); ok {
		r0 = rf(wm)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// GracefulClose provides a mock function with given fields: wg
func (_m *Connection) GracefulClose(wg *sync.WaitGroup) {
	_m.Called(wg)
}

// SendSessionID provides a mock function with given fields:
func (_m *Connection) SendSessionID() error {
	ret := _m.Called()

	var r0 error
	if rf, ok := ret.Get(0).(func() error); ok {
		r0 = rf()
	} else {
		r0 = ret.Error(0)
	}

	return r0
}
