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

Side by Side Diff: impl/prod/taskqueue.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 unified diff | Download patch
« no previous file with comments | « impl/memory/taskqueue_test.go ('k') | service/taskqueue/interface.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package prod 5 package prod
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "reflect" 9 "reflect"
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 func (t tqImpl) Stats(queueNames []string, cb tq.RawStatsCB) error { 124 func (t tqImpl) Stats(queueNames []string, cb tq.RawStatsCB) error {
125 stats, err := taskqueue.QueueStats(t.Context, queueNames) 125 stats, err := taskqueue.QueueStats(t.Context, queueNames)
126 if err != nil { 126 if err != nil {
127 return err 127 return err
128 } 128 }
129 for _, s := range stats { 129 for _, s := range stats {
130 cb((*tq.Statistics)(&s), nil) 130 cb((*tq.Statistics)(&s), nil)
131 } 131 }
132 return nil 132 return nil
133 } 133 }
134
135 func (t tqImpl) Testable() tq.Testable {
136 return nil
137 }
OLDNEW
« no previous file with comments | « impl/memory/taskqueue_test.go ('k') | service/taskqueue/interface.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698