2022-01-10 17:45:10 +00:00
|
|
|
// Code generated by mockery v2.9.4. DO NOT EDIT.
|
|
|
|
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
|
|
|
|
media "git.netflux.io/rob/clipper/media"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
|
|
|
|
uuid "github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MediaSetService is an autogenerated mock type for the MediaSetService type
|
|
|
|
type MediaSetService struct {
|
|
|
|
mock.Mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get provides a mock function with given fields: _a0, _a1
|
|
|
|
func (_m *MediaSetService) Get(_a0 context.Context, _a1 string) (*media.MediaSet, error) {
|
|
|
|
ret := _m.Called(_a0, _a1)
|
|
|
|
|
|
|
|
var r0 *media.MediaSet
|
|
|
|
if rf, ok := ret.Get(0).(func(context.Context, string) *media.MediaSet); ok {
|
|
|
|
r0 = rf(_a0, _a1)
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).(*media.MediaSet)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
|
|
|
|
r1 = rf(_a0, _a1)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetAudioSegment provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
|
2022-01-10 17:52:04 +00:00
|
|
|
func (_m *MediaSetService) GetAudioSegment(_a0 context.Context, _a1 uuid.UUID, _a2 int64, _a3 int64, _a4 media.AudioFormat) (media.AudioSegmentStream, error) {
|
2022-01-10 17:45:10 +00:00
|
|
|
ret := _m.Called(_a0, _a1, _a2, _a3, _a4)
|
|
|
|
|
2022-01-10 17:52:04 +00:00
|
|
|
var r0 media.AudioSegmentStream
|
|
|
|
if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, int64, int64, media.AudioFormat) media.AudioSegmentStream); ok {
|
2022-01-10 17:45:10 +00:00
|
|
|
r0 = rf(_a0, _a1, _a2, _a3, _a4)
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
2022-01-10 17:52:04 +00:00
|
|
|
r0 = ret.Get(0).(media.AudioSegmentStream)
|
2022-01-10 17:45:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, int64, int64, media.AudioFormat) error); ok {
|
|
|
|
r1 = rf(_a0, _a1, _a2, _a3, _a4)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetPeaks provides a mock function with given fields: _a0, _a1, _a2
|
|
|
|
func (_m *MediaSetService) GetPeaks(_a0 context.Context, _a1 uuid.UUID, _a2 int) (media.GetPeaksProgressReader, error) {
|
|
|
|
ret := _m.Called(_a0, _a1, _a2)
|
|
|
|
|
|
|
|
var r0 media.GetPeaksProgressReader
|
|
|
|
if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, int) media.GetPeaksProgressReader); ok {
|
|
|
|
r0 = rf(_a0, _a1, _a2)
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).(media.GetPeaksProgressReader)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, int) error); ok {
|
|
|
|
r1 = rf(_a0, _a1, _a2)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetPeaksForSegment provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
|
|
|
|
func (_m *MediaSetService) GetPeaksForSegment(_a0 context.Context, _a1 uuid.UUID, _a2 int64, _a3 int64, _a4 int) ([]int16, error) {
|
|
|
|
ret := _m.Called(_a0, _a1, _a2, _a3, _a4)
|
|
|
|
|
|
|
|
var r0 []int16
|
|
|
|
if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, int64, int64, int) []int16); ok {
|
|
|
|
r0 = rf(_a0, _a1, _a2, _a3, _a4)
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).([]int16)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, int64, int64, int) error); ok {
|
|
|
|
r1 = rf(_a0, _a1, _a2, _a3, _a4)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetVideo provides a mock function with given fields: _a0, _a1
|
|
|
|
func (_m *MediaSetService) GetVideo(_a0 context.Context, _a1 uuid.UUID) (media.GetVideoProgressReader, error) {
|
|
|
|
ret := _m.Called(_a0, _a1)
|
|
|
|
|
|
|
|
var r0 media.GetVideoProgressReader
|
|
|
|
if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) media.GetVideoProgressReader); ok {
|
|
|
|
r0 = rf(_a0, _a1)
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).(media.GetVideoProgressReader)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID) error); ok {
|
|
|
|
r1 = rf(_a0, _a1)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetVideoThumbnail provides a mock function with given fields: _a0, _a1
|
|
|
|
func (_m *MediaSetService) GetVideoThumbnail(_a0 context.Context, _a1 uuid.UUID) (media.VideoThumbnail, error) {
|
|
|
|
ret := _m.Called(_a0, _a1)
|
|
|
|
|
|
|
|
var r0 media.VideoThumbnail
|
|
|
|
if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) media.VideoThumbnail); ok {
|
|
|
|
r0 = rf(_a0, _a1)
|
|
|
|
} else {
|
|
|
|
r0 = ret.Get(0).(media.VideoThumbnail)
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID) error); ok {
|
|
|
|
r1 = rf(_a0, _a1)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|