summaryrefslogtreecommitdiff
path: root/vendor/github.com/AllenDang/w32/advapi32_test.go
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2019-08-08 00:19:33 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2019-08-08 00:19:33 +0200
commitfde18e485ff7cbc7b2e33dade8e81136f06a5b60 (patch)
tree79a6dbd13e7e4a46e708a70104c548f403b477ae /vendor/github.com/AllenDang/w32/advapi32_test.go
parent93e1de570f47b095905835735dbd67479aa0c2de (diff)
[pkg] remove vendor
Diffstat (limited to 'vendor/github.com/AllenDang/w32/advapi32_test.go')
-rw-r--r--vendor/github.com/AllenDang/w32/advapi32_test.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/vendor/github.com/AllenDang/w32/advapi32_test.go b/vendor/github.com/AllenDang/w32/advapi32_test.go
deleted file mode 100644
index 72a9198..0000000
--- a/vendor/github.com/AllenDang/w32/advapi32_test.go
+++ /dev/null
@@ -1,41 +0,0 @@
-package w32
-
-import (
- "testing"
-)
-
-func TestInitializeSecurityDescriptor(t *testing.T) {
- sd, err := InitializeSecurityDescriptor(1)
- if err != nil {
- t.Errorf("Failed: %v", err)
- }
- t.Logf("SD:\n%#v\n", *sd)
-}
-
-func TestSetSecurityDescriptorDacl(t *testing.T) {
-
- sd, err := InitializeSecurityDescriptor(1)
- if err != nil {
- t.Errorf("Failed to initialize: %v", err)
- }
- err = SetSecurityDescriptorDacl(sd, nil)
- if err != nil {
- t.Errorf("Failed to set NULL DACL: %v", err)
- }
- t.Logf("[OK] Set NULL DACL")
-
- empty := &ACL{
- AclRevision: 4,
- Sbz1: 0,
- AclSize: 4,
- AceCount: 0,
- Sbz2: 0,
- }
- err = SetSecurityDescriptorDacl(sd, empty)
- if err != nil {
- t.Errorf("Failed to set empty DACL: %v", err)
- }
- t.Logf("[OK] Set empty DACL")
- t.Logf("SD:\n%#v\n", *sd)
-
-}