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

Unified Diff: filter/count/gi.go

Issue 1871943003: Add Info Testable interface, implement for memory. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Fall through in filter. 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 | « no previous file | impl/dummy/dummy.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/gi.go
diff --git a/filter/count/gi.go b/filter/count/gi.go
index 5524af003721ebe64f3bb40e3ce4a43bc8c67a5d..c251306bf4d64fe5e7a067f0b78dec95f09d981c 100644
--- a/filter/count/gi.go
+++ b/filter/count/gi.go
@@ -144,6 +144,10 @@ func (g *infoCounter) SignBytes(bytes []byte) (string, []byte, error) {
return keyName, signature, g.c.SignBytes.up(err)
}
+func (g *infoCounter) Testable() info.Testable {
+ return g.gi.Testable()
+}
+
// FilterGI installs a counter GlobalInfo filter in the context.
func FilterGI(c context.Context) (context.Context, *InfoCounter) {
state := &InfoCounter{}
« no previous file with comments | « no previous file | impl/dummy/dummy.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698