Commit 14c2dcb6 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #2272 from legal90/prl-default-settings

builder/parallels: Add mock for "SetDefaultConfiguration" method
parents 43771d91 0a53fbc2
......@@ -37,6 +37,9 @@ type DriverMock struct {
SendKeyScanCodesCalls [][]string
SendKeyScanCodesErrs []error
SetDefaultConfigurationCalled bool
SetDefaultConfigurationError error
ToolsIsoPathCalled bool
ToolsIsoPathFlavor string
ToolsIsoPathResult string
......@@ -107,6 +110,11 @@ func (d *DriverMock) SendKeyScanCodes(name string, scancodes ...string) error {
return nil
}
func (d *DriverMock) SetDefaultConfiguration(name string) error {
d.SetDefaultConfigurationCalled = true
return d.SetDefaultConfigurationError
}
func (d *DriverMock) Mac(name string) (string, error) {
d.MacName = name
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