1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package drm
6
7import (
8 mock "github.com/stretchr/testify/mock"
9)
10
11// newMockcursorImages creates a new instance of mockcursorImages. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
12// The first argument is typically a *testing.T value.
13func newMockcursorImages(t interface {
14 mock.TestingT
15 Cleanup(func())
16}) *mockcursorImages {
17 if helper, ok := t.(interface{ Helper() }); ok {
18 helper.Helper()
19 }
20
21 mock := &mockcursorImages{}
22 mock.Mock.Test(t)
23
24 t.Cleanup(func() {
25 if helper, ok := t.(interface{ Helper() }); ok {
26 helper.Helper()
27 }
28 mock.AssertExpectations(t)
29 })
30
31 return mock
32}
33
34// mockcursorImages is an autogenerated mock type for the cursorImages type
35type mockcursorImages struct {
36 mock.Mock
37}
38
39type mockcursorImages_Expecter struct {
40 mock *mock.Mock
41}
42
43func (_m *mockcursorImages) EXPECT() *mockcursorImages_Expecter {
44 return &mockcursorImages_Expecter{mock: &_m.Mock}
45}
46
47// close provides a mock function for the type mockcursorImages
48func (_mock *mockcursorImages) close() {
49 _mock.Called()
50 return
51}
52
53// mockcursorImages_close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'close'
54type mockcursorImages_close_Call struct {
55 *mock.Call
56}
57
58// close is a helper method to define mock.On call
59func (_e *mockcursorImages_Expecter) close() *mockcursorImages_close_Call {
60 return &mockcursorImages_close_Call{Call: _e.mock.On("close")}
61}
62
63func (_c *mockcursorImages_close_Call) Run(run func()) *mockcursorImages_close_Call {
64 _c.Call.Run(func(args mock.Arguments) {
65 run()
66 })
67 return _c
68}
69
70func (_c *mockcursorImages_close_Call) Return() *mockcursorImages_close_Call {
71 _c.Call.Return()
72 return _c
73}
74
75func (_c *mockcursorImages_close_Call) RunAndReturn(run func()) *mockcursorImages_close_Call {
76 _c.Run(run)
77 return _c
78}
79
80// fb provides a mock function for the type mockcursorImages
81func (_mock *mockcursorImages) fb(i int) uint32 {
82 ret := _mock.Called(i)
83
84 if len(ret) == 0 {
85 panic("no return value specified for fb")
86 }
87
88 var r0 uint32
89 if returnFunc, ok := ret.Get(0).(func(int) uint32); ok {
90 r0 = returnFunc(i)
91 } else {
92 r0 = ret.Get(0).(uint32)
93 }
94 return r0
95}
96
97// mockcursorImages_fb_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'fb'
98type mockcursorImages_fb_Call struct {
99 *mock.Call
100}
101
102// fb is a helper method to define mock.On call
103// - i int
104func (_e *mockcursorImages_Expecter) fb(i any) *mockcursorImages_fb_Call {
105 return &mockcursorImages_fb_Call{Call: _e.mock.On("fb", i)}
106}
107
108func (_c *mockcursorImages_fb_Call) Run(run func(i int)) *mockcursorImages_fb_Call {
109 _c.Call.Run(func(args mock.Arguments) {
110 var arg0 int
111 if args[0] != nil {
112 arg0 = args[0].(int)
113 }
114 run(
115 arg0,
116 )
117 })
118 return _c
119}
120
121func (_c *mockcursorImages_fb_Call) Return(v uint32) *mockcursorImages_fb_Call {
122 _c.Call.Return(v)
123 return _c
124}
125
126func (_c *mockcursorImages_fb_Call) RunAndReturn(run func(i int) uint32) *mockcursorImages_fb_Call {
127 _c.Call.Return(run)
128 return _c
129}
130
131// write provides a mock function for the type mockcursorImages
132func (_mock *mockcursorImages) write(i int, pixels []byte, w int, h int, hdrNits float64) error {
133 ret := _mock.Called(i, pixels, w, h, hdrNits)
134
135 if len(ret) == 0 {
136 panic("no return value specified for write")
137 }
138
139 var r0 error
140 if returnFunc, ok := ret.Get(0).(func(int, []byte, int, int, float64) error); ok {
141 r0 = returnFunc(i, pixels, w, h, hdrNits)
142 } else {
143 r0 = ret.Error(0)
144 }
145 return r0
146}
147
148// mockcursorImages_write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'write'
149type mockcursorImages_write_Call struct {
150 *mock.Call
151}
152
153// write is a helper method to define mock.On call
154// - i int
155// - pixels []byte
156// - w int
157// - h int
158// - hdrNits float64
159func (_e *mockcursorImages_Expecter) write(i any, pixels any, w any, h any, hdrNits any) *mockcursorImages_write_Call {
160 return &mockcursorImages_write_Call{Call: _e.mock.On("write", i, pixels, w, h, hdrNits)}
161}
162
163func (_c *mockcursorImages_write_Call) Run(run func(i int, pixels []byte, w int, h int, hdrNits float64)) *mockcursorImages_write_Call {
164 _c.Call.Run(func(args mock.Arguments) {
165 var arg0 int
166 if args[0] != nil {
167 arg0 = args[0].(int)
168 }
169 var arg1 []byte
170 if args[1] != nil {
171 arg1 = args[1].([]byte)
172 }
173 var arg2 int
174 if args[2] != nil {
175 arg2 = args[2].(int)
176 }
177 var arg3 int
178 if args[3] != nil {
179 arg3 = args[3].(int)
180 }
181 var arg4 float64
182 if args[4] != nil {
183 arg4 = args[4].(float64)
184 }
185 run(
186 arg0,
187 arg1,
188 arg2,
189 arg3,
190 arg4,
191 )
192 })
193 return _c
194}
195
196func (_c *mockcursorImages_write_Call) Return(err error) *mockcursorImages_write_Call {
197 _c.Call.Return(err)
198 return _c
199}
200
201func (_c *mockcursorImages_write_Call) RunAndReturn(run func(i int, pixels []byte, w int, h int, hdrNits float64) error) *mockcursorImages_write_Call {
202 _c.Call.Return(run)
203 return _c
204}