Merge pull request #2272 from legal90/prl-default-settings
builder/parallels: Add mock for "SetDefaultConfiguration" method
This commit is contained in:
commit
14c2dcb62c
|
@ -37,6 +37,9 @@ type DriverMock struct {
|
||||||
SendKeyScanCodesCalls [][]string
|
SendKeyScanCodesCalls [][]string
|
||||||
SendKeyScanCodesErrs []error
|
SendKeyScanCodesErrs []error
|
||||||
|
|
||||||
|
SetDefaultConfigurationCalled bool
|
||||||
|
SetDefaultConfigurationError error
|
||||||
|
|
||||||
ToolsIsoPathCalled bool
|
ToolsIsoPathCalled bool
|
||||||
ToolsIsoPathFlavor string
|
ToolsIsoPathFlavor string
|
||||||
ToolsIsoPathResult string
|
ToolsIsoPathResult string
|
||||||
|
@ -107,6 +110,11 @@ func (d *DriverMock) SendKeyScanCodes(name string, scancodes ...string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d *DriverMock) SetDefaultConfiguration(name string) error {
|
||||||
|
d.SetDefaultConfigurationCalled = true
|
||||||
|
return d.SetDefaultConfigurationError
|
||||||
|
}
|
||||||
|
|
||||||
func (d *DriverMock) Mac(name string) (string, error) {
|
func (d *DriverMock) Mac(name string) (string, error) {
|
||||||
d.MacName = name
|
d.MacName = name
|
||||||
return d.MacReturn, d.MacError
|
return d.MacReturn, d.MacError
|
||||||
|
|
Loading…
Reference in New Issue