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

Unified Diff: impl/memory/info_test.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Lightning talk licenses. Created 4 years, 3 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') | impl/memory/mail.go » ('j') | 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 0e9eaaf5240be44e37507b2b1c3a6aae06395f08..3bfdca2630c2541580f70d80b507c60ac1c52eff 100644
--- a/impl/memory/info_test.go
+++ b/impl/memory/info_test.go
@@ -18,16 +18,16 @@ func TestMustNamespace(t *testing.T) {
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")
+ So(info.AppID(c), ShouldEqual, "app-id")
+ So(info.FullyQualifiedAppID(c), ShouldEqual, "dev~app-id")
+ So(info.RequestID(c), ShouldEqual, "test-request-id")
// Setting to "override" applies to initial context.
- c = info.Get(c).Testable().SetRequestID("override")
- So(info.Get(c).RequestID(), ShouldEqual, "override")
+ c = info.GetTestable(c).SetRequestID("override")
+ So(info.RequestID(c), ShouldEqual, "override")
// Derive inner context, "override" applies.
- c = info.Get(c).MustNamespace("valid_namespace_name")
- So(info.Get(c).RequestID(), ShouldEqual, "override")
+ c = info.MustNamespace(c, "valid_namespace_name")
+ So(info.RequestID(c), ShouldEqual, "override")
})
}
« no previous file with comments | « impl/memory/info.go ('k') | impl/memory/mail.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698