/
auto_mock.go
59 lines (42 loc) · 1.5 KB
/
auto_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Code generated by "./generator ./system/com.deepin.api.device"; DO NOT EDIT.
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
package device
import "fmt"
import "github.com/godbus/dbus/v5"
import "github.com/linuxdeepin/go-lib/dbusutil/proxy"
import "github.com/stretchr/testify/mock"
type MockDevice struct {
MockInterfaceDevice // interface com.deepin.api.Device
proxy.MockObject
}
type MockInterfaceDevice struct {
mock.Mock
}
// method HasBluetoothDeviceBlocked
func (v *MockInterfaceDevice) GoHasBluetoothDeviceBlocked(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
mockArgs := v.Called(flags, ch)
ret, ok := mockArgs.Get(0).(*dbus.Call)
if !ok {
panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
}
return ret
}
func (v *MockInterfaceDevice) HasBluetoothDeviceBlocked(flags dbus.Flags) (bool, error) {
mockArgs := v.Called(flags)
return mockArgs.Bool(0), mockArgs.Error(1)
}
// method UnblockBluetoothDevices
func (v *MockInterfaceDevice) GoUnblockBluetoothDevices(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
mockArgs := v.Called(flags, ch)
ret, ok := mockArgs.Get(0).(*dbus.Call)
if !ok {
panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
}
return ret
}
func (v *MockInterfaceDevice) UnblockBluetoothDevices(flags dbus.Flags) error {
mockArgs := v.Called(flags)
return mockArgs.Error(0)
}