Commit 0a53fbc2 authored by Mikhail Zholobov's avatar Mikhail Zholobov

builder/parallels: Add mock for "SetDefaultConfiguration" method

Fixes unit test failures
parent 2860bfdf
...@@ -37,6 +37,9 @@ type DriverMock struct { ...@@ -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 { ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment