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

Unified Diff: go/src/infra/gae/libs/gae/memory/globalinfo.go

Issue 1226063003: Move dummy service implementations into their own package. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@abstract
Patch Set: move mathrand test 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
Index: go/src/infra/gae/libs/gae/memory/globalinfo.go
diff --git a/go/src/infra/gae/libs/gae/memory/globalinfo.go b/go/src/infra/gae/libs/gae/memory/globalinfo.go
index 0232c68ca71d613bae4b70bbec832b55363d1d94..4c9220c74fa3b6cefcaddb94083256e790f9f40d 100644
--- a/go/src/infra/gae/libs/gae/memory/globalinfo.go
+++ b/go/src/infra/gae/libs/gae/memory/globalinfo.go
@@ -8,6 +8,7 @@ import (
"golang.org/x/net/context"
"infra/gae/libs/gae"
+ "infra/gae/libs/gae/dummy"
)
type giContextKeyType int
@@ -22,7 +23,7 @@ func curGID(c context.Context) *globalInfoData {
// by gae.GetGI(c)
func useGI(c context.Context) context.Context {
return gae.SetGIFactory(c, func(ic context.Context) gae.GlobalInfo {
- return &giImpl{gae.DummyGI(), curGID(ic), ic}
+ return &giImpl{dummy.GI(), curGID(ic), ic}
})
}

Powered by Google App Engine
This is Rietveld 408576698