summaryrefslogtreecommitdiffhomepage
path: root/tun/wintun/setupapi/setupapi_windows_test.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-02-07 22:35:03 +0100
committerSimon Rozman <simon@rozman.si>2019-02-07 23:50:30 +0100
commitbd963497da908d3910668dab9dab4ac7654a638a (patch)
treeaa723b40561155fff5bdaf9c6d07c9a891c0930c /tun/wintun/setupapi/setupapi_windows_test.go
parent05d25fd1b71aaad8f542999851d472d63b724ae2 (diff)
setupapi: Merge _SP_DEVINSTALL_PARAMS and DevInstallParams
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'tun/wintun/setupapi/setupapi_windows_test.go')
-rw-r--r--tun/wintun/setupapi/setupapi_windows_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tun/wintun/setupapi/setupapi_windows_test.go b/tun/wintun/setupapi/setupapi_windows_test.go
index b8f4bc7..32e0f1e 100644
--- a/tun/wintun/setupapi/setupapi_windows_test.go
+++ b/tun/wintun/setupapi/setupapi_windows_test.go
@@ -361,6 +361,12 @@ func TestSetupDiGetDeviceInstallParams(t *testing.T) {
t.Errorf("Error calling SetupDiGetDeviceInstallParams: %s", err.Error())
}
}
+
+ params := &DevInstallParams{}
+ params.SetDriverPath("foobar")
+ if params.GetDriverPath() != "foobar" {
+ t.Error("DevInstallParams.(Get|Set)DriverPath() differ")
+ }
}
func TestSetupDiClassNameFromGuidEx(t *testing.T) {