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

Unified Diff: filter/count/tq.go

Issue 1282673002: Make obtaining the Testable interface actually part of the interface. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Created 5 years, 4 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 | « doc.go ('k') | filter/featureBreaker/tq.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/tq.go
diff --git a/filter/count/tq.go b/filter/count/tq.go
index 65f0955b054e86be5a6027f843ba783f7579a4a4..379e69d3dc8956e190a35b4775d766dca8725f8c 100644
--- a/filter/count/tq.go
+++ b/filter/count/tq.go
@@ -42,6 +42,10 @@ func (t *tqCounter) Stats(queueNames []string, cb tq.RawStatsCB) error {
return t.c.Stats.up(t.tq.Stats(queueNames, cb))
}
+func (t *tqCounter) Testable() tq.Testable {
+ return t.tq.Testable()
+}
+
// FilterTQ installs a counter TaskQueue filter in the context.
func FilterTQ(c context.Context) (context.Context, *TQCounter) {
state := &TQCounter{}
« no previous file with comments | « doc.go ('k') | filter/featureBreaker/tq.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698