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

Unified Diff: impl/memory/info_test.go

Issue 1929423002: filter/txnBuf: Use fully-qualified App ID. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Use public methods for defining Info service in tests. Created 4 years, 8 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 | « impl/memory/info.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/info_test.go
diff --git a/impl/memory/info_test.go b/impl/memory/info_test.go
index 200f43764962e5d6d044fb5658c346ba61d3bdd5..107c17b247e6721fbfeaaa1d3010fb8315a1e406 100644
--- a/impl/memory/info_test.go
+++ b/impl/memory/info_test.go
@@ -27,13 +27,11 @@ func TestMustNamespace(t *testing.T) {
})
Convey("Testable interface works", t, func() {
- c := Use(context.Background())
- c = useGID(c, func(mod *globalInfoData) {
- mod.appid = "app-id"
- })
+ c := UseWithAppID(context.Background(), "dev~app-id")
// Default value.
So(info.Get(c).AppID(), ShouldEqual, "app-id")
+ So(info.Get(c).FullyQualifiedAppID(), ShouldEqual, "dev~app-id")
So(info.Get(c).RequestID(), ShouldEqual, "test-request-id")
// Setting to "override" applies to initial context.
« no previous file with comments | « impl/memory/info.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698