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

Unified Diff: appengine/datastorecache/util_test.go

Issue 2645763002: datastorecache: Add Locker field, public settings. (Closed)
Patch Set: Created 3 years, 11 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 | « appengine/datastorecache/model.go ('k') | luci_config/appengine/backend/datastore/ds.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/datastorecache/util_test.go
diff --git a/appengine/datastorecache/util_test.go b/appengine/datastorecache/util_test.go
index ce1cf9129c8dfc8423461483bc5dcd5b38b54479..b2d3a9dd14619d988068ec7b7ae28f7ec6e05aa5 100644
--- a/appengine/datastorecache/util_test.go
+++ b/appengine/datastorecache/util_test.go
@@ -107,6 +107,8 @@ func (tc *testCache) Refresh(c context.Context, key []byte, current Value) (Valu
return value, nil
}
+func (tc *testCache) Locker(c context.Context) Locker { return MemLocker(c) }
+
func (tc *testCache) reset() {
atomic.StoreInt32(&tc.refreshes, 0)
}
« no previous file with comments | « appengine/datastorecache/model.go ('k') | luci_config/appengine/backend/datastore/ds.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698