diff options
author | Odd Stranne <odd@mullvad.net> | 2019-05-07 13:28:43 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-08 08:31:00 +0200 |
commit | b8d83614da4147b8cca56056780c07d582d3b1d8 (patch) | |
tree | 4f56e733d923a21aeca134f1e350212573c4af9e /service/firewall/types_windows_test.go | |
parent | firewall: add permitHyperV() (diff) | |
download | wireguard-windows-b8d83614da4147b8cca56056780c07d582d3b1d8.tar.xz wireguard-windows-b8d83614da4147b8cca56056780c07d582d3b1d8.zip |
firewall: remove unused code
Signed-off-by: Odd Stranne <odd@mullvad.net>
Diffstat (limited to 'service/firewall/types_windows_test.go')
-rw-r--r-- | service/firewall/types_windows_test.go | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/service/firewall/types_windows_test.go b/service/firewall/types_windows_test.go index 6ff6e09d..5015672d 100644 --- a/service/firewall/types_windows_test.go +++ b/service/firewall/types_windows_test.go @@ -536,67 +536,3 @@ func TestWtFwpmSublayer0Offsets(t *testing.T) { return } } - -func TestWtSecWinntAuthIdentityWSize(t *testing.T) { - - const actualWtSecWinntAuthIdentityWSize = unsafe.Sizeof(wtSecWinntAuthIdentityW{}) - - if actualWtSecWinntAuthIdentityWSize != wtSecWinntAuthIdentityW_Size { - t.Errorf("Size of wtSecWinntAuthIdentityW is %d, although %d is expected.", - actualWtSecWinntAuthIdentityWSize, wtSecWinntAuthIdentityW_Size) - } -} - -func TestWtSecWinntAuthIdentityWOffsets(t *testing.T) { - - s := wtSecWinntAuthIdentityW{} - sp := uintptr(unsafe.Pointer(&s)) - - offset := uintptr(unsafe.Pointer(&s.UserLength)) - sp - - if offset != wtSecWinntAuthIdentityW_UserLength_Offset { - t.Errorf("wtSecWinntAuthIdentityW.UserLength offset is %d although %d is expected", offset, - wtSecWinntAuthIdentityW_UserLength_Offset) - return - } - - offset = uintptr(unsafe.Pointer(&s.Domain)) - sp - - if offset != wtSecWinntAuthIdentityW_Domain_Offset { - t.Errorf("wtSecWinntAuthIdentityW.Domain offset is %d although %d is expected", offset, - wtSecWinntAuthIdentityW_Domain_Offset) - return - } - - offset = uintptr(unsafe.Pointer(&s.DomainLength)) - sp - - if offset != wtSecWinntAuthIdentityW_DomainLength_Offset { - t.Errorf("wtSecWinntAuthIdentityW.DomainLength offset is %d although %d is expected", offset, - wtSecWinntAuthIdentityW_DomainLength_Offset) - return - } - - offset = uintptr(unsafe.Pointer(&s.Password)) - sp - - if offset != wtSecWinntAuthIdentityW_Password_Offset { - t.Errorf("wtSecWinntAuthIdentityW.Password offset is %d although %d is expected", offset, - wtSecWinntAuthIdentityW_Password_Offset) - return - } - - offset = uintptr(unsafe.Pointer(&s.PasswordLength)) - sp - - if offset != wtSecWinntAuthIdentityW_PasswordLength_Offset { - t.Errorf("wtSecWinntAuthIdentityW.PasswordLength offset is %d although %d is expected", offset, - wtSecWinntAuthIdentityW_PasswordLength_Offset) - return - } - - offset = uintptr(unsafe.Pointer(&s.Flags)) - sp - - if offset != wtSecWinntAuthIdentityW_Flags_Offset { - t.Errorf("wtSecWinntAuthIdentityW.Flags offset is %d although %d is expected", offset, - wtSecWinntAuthIdentityW_Flags_Offset) - return - } -} |