| Index: go/src/infra/gae/libs/wrapper/taskqueue_testable.go
|
| diff --git a/go/src/infra/gae/libs/wrapper/taskqueue_testable.go b/go/src/infra/gae/libs/wrapper/taskqueue_testable.go
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a4bcd30bee81f9a3c2fd57a6ae9c9060bf3f0c84
|
| --- /dev/null
|
| +++ b/go/src/infra/gae/libs/wrapper/taskqueue_testable.go
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package wrapper
|
| +
|
| +import (
|
| + "appengine/taskqueue"
|
| +)
|
| +
|
| +// QueueData is {queueName: {taskName: *Task}}
|
| +type QueueData map[string]map[string]*taskqueue.Task
|
| +
|
| +// AnonymousQueueData is {queueName: [*Task]}
|
| +type AnonymousQueueData map[string][]*taskqueue.Task
|
| +
|
| +// TQTestable is the testable interface for fake taskqueue implementations
|
| +type TQTestable interface {
|
| + Testable
|
| +
|
| + AddQueue(queueName string)
|
| + GetScheduledTasks() QueueData
|
| + GetTombstonedTasks() QueueData
|
| + GetTransactionTasks() AnonymousQueueData
|
| + ResetTasks()
|
| +}
|
|
|