aboutsummaryrefslogtreecommitdiff
path: root/actions/protector_test.go
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2017-06-28 13:57:55 -0700
committerJoe Richey joerichey@google.com <joerichey@google.com>2017-06-28 15:15:21 -0700
commit2c52eca8727df744d093703bbcbd87fc39d57d30 (patch)
treece733819f34baacbb67d5dabb5baaa01c6888e9d /actions/protector_test.go
parentabdd12ff9efa98af245b91517398ad84b42fd90e (diff)
Finalize import paths and documentationv0.1.00.1.0
This commit changes all the internal import paths from `fscrypt/foo` to `github.com/google/fscrypt/foo` so that it can be built once we release externaly. The documentation in README.md is updated accordingly. Also, the README has a note noting that we do not make any guarantees about project stability before 1.0 (when it ships with Ubuntu). Change-Id: I6ba86e442c74057c8a06ba32a42e17f94833e280
Diffstat (limited to 'actions/protector_test.go')
-rw-r--r--actions/protector_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/actions/protector_test.go b/actions/protector_test.go
index eacba83..6c81d49 100644
--- a/actions/protector_test.go
+++ b/actions/protector_test.go
@@ -25,7 +25,7 @@ import (
"github.com/pkg/errors"
- . "fscrypt/crypto"
+ "github.com/google/fscrypt/crypto"
)
const testProtectorName = "my favorite protector"
@@ -33,11 +33,11 @@ const testProtectorName2 = testProtectorName + "2"
var errCallback = errors.New("bad callback")
-func goodCallback(info ProtectorInfo, retry bool) (*Key, error) {
- return NewFixedLengthKeyFromReader(bytes.NewReader(timingPassphrase), len(timingPassphrase))
+func goodCallback(info ProtectorInfo, retry bool) (*crypto.Key, error) {
+ return crypto.NewFixedLengthKeyFromReader(bytes.NewReader(timingPassphrase), len(timingPassphrase))
}
-func badCallback(info ProtectorInfo, retry bool) (*Key, error) {
+func badCallback(info ProtectorInfo, retry bool) (*crypto.Key, error) {
return nil, errCallback
}