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

Unified Diff: filter/featureBreaker/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 | « filter/count/tq.go ('k') | impl/dummy/dummy.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/featureBreaker/tq.go
diff --git a/filter/featureBreaker/tq.go b/filter/featureBreaker/tq.go
index 6754d325f7e53c79de97b2e0c2ad683973997de1..d26f614926a556b00ea587baba5b826243f4c1af 100644
--- a/filter/featureBreaker/tq.go
+++ b/filter/featureBreaker/tq.go
@@ -34,6 +34,10 @@ func (t *tqState) Stats(queueNames []string, cb tq.RawStatsCB) error {
return t.run(func() error { return t.tq.Stats(queueNames, cb) })
}
+func (t *tqState) Testable() tq.Testable {
+ return t.tq.Testable()
+}
+
// FilterTQ installs a counter TaskQueue filter in the context.
func FilterTQ(c context.Context, defaultError error) (context.Context, FeatureBreaker) {
state := newState(defaultError)
« no previous file with comments | « filter/count/tq.go ('k') | impl/dummy/dummy.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698