mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
refactor: add the Safari base under internal/browser (#660)
Parsers move with git mv and hand records to a Collector; discovery reads a copy of SafariTabs.db, and app hands the run's login keychain to the default profile's password extractor. The old browser/safari runs the new extractors.
This commit is contained in:
1 parent
2093045664
commit
4add07e825
37 files changed
+1757
-949
No files matched your search
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -41,6 +42,18 @@ func TestPipelineGoldenFirefox(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestPipelineGoldenSafari(t *testing.T) {
|
||||
if runtime.GOOS != "darwin" {
|
||||
t.Skip("Safari is in the browser table on macOS only")
|
||||
}
|
||||
home := t.TempDir()
|
||||
safariFixtureLibrary(t, filepath.Join(home, "Library"))
|
||||
|
||||
assertExtractGoldens(t, "extract-safari", func(t *testing.T, format string) string {
|
||||
return pipelineGoldenRun(t, home, nil, format)
|
||||
})
|
||||
}
|
||||
|
||||
func pipelineGoldenRun(t *testing.T, home string, keys map[ibrowser.DirID]masterkey.Set, format string) string {
|
||||
t.Helper()
|
||||
out := t.TempDir()
|
||||
|
||||
Reference in new issue
Block a user