Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: go/src/infra/gae/libs/memlock/memlock_test.go

Issue 1230303003: Revert "Refactor current GAE abstraction library to be free of the SDK*" (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/src/infra/gae/libs/memlock/memlock.go ('k') | go/src/infra/gae/libs/meta/eg.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/gae/libs/memlock/memlock_test.go
diff --git a/go/src/infra/gae/libs/memlock/memlock_test.go b/go/src/infra/gae/libs/memlock/memlock_test.go
index ab4fecac94b38a8135e614c80362bef8e7af8b6b..6d86249507ea8ca3316bb2f45f7af8e1362e5b83 100644
--- a/go/src/infra/gae/libs/memlock/memlock_test.go
+++ b/go/src/infra/gae/libs/memlock/memlock_test.go
@@ -6,17 +6,18 @@ package memlock
import (
"fmt"
+ "infra/gae/libs/wrapper"
+ "infra/gae/libs/wrapper/memory"
+ "infra/libs/clock"
+ "infra/libs/clock/testclock"
"runtime"
"testing"
"time"
- "infra/gae/libs/gae"
- "infra/gae/libs/gae/memory"
-
- "github.com/luci/luci-go/common/clock"
- "github.com/luci/luci-go/common/clock/testclock"
. "github.com/smartystreets/goconvey/convey"
"golang.org/x/net/context"
+
+ "appengine/memcache"
)
func init() {
@@ -41,9 +42,9 @@ func TestSimple(t *testing.T) {
}
})
ctx = memory.Use(ctx)
- mc := gae.GetMC(ctx).(interface {
- gae.Testable
- gae.Memcache
+ mc := wrapper.GetMC(ctx).(interface {
+ wrapper.Testable
+ wrapper.MCSingleReadWriter
})
Convey("fails to acquire when memcache is down", func() {
@@ -104,7 +105,7 @@ func TestSimple(t *testing.T) {
})
Convey("or because it was stolen", func() {
- mc.Set(mc.NewItem(key).SetValue([]byte("wat")))
+ mc.Set(&memcache.Item{Key: key, Value: []byte("wat")})
waitFalse()
})
« no previous file with comments | « go/src/infra/gae/libs/memlock/memlock.go ('k') | go/src/infra/gae/libs/meta/eg.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698