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

Side by Side Diff: go/src/infra/gae/libs/wrapper/taskqueue_testable.go

Issue 1230303003: Revert "Refactor current GAE abstraction library to be free of the SDK*" (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 5 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 | « go/src/infra/gae/libs/wrapper/taskqueue.go ('k') | go/src/infra/gae/libs/wrapper/testable.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 gae 5 package wrapper
6 6
7 // QueueData is {queueName: {taskName: *TQTask}} 7 import (
8 type QueueData map[string]map[string]*TQTask 8 » "appengine/taskqueue"
9 )
9 10
10 // AnonymousQueueData is {queueName: [*TQTask]} 11 // QueueData is {queueName: {taskName: *Task}}
11 type AnonymousQueueData map[string][]*TQTask 12 type QueueData map[string]map[string]*taskqueue.Task
13
14 // AnonymousQueueData is {queueName: [*Task]}
15 type AnonymousQueueData map[string][]*taskqueue.Task
12 16
13 // TQTestable is the testable interface for fake taskqueue implementations 17 // TQTestable is the testable interface for fake taskqueue implementations
14 type TQTestable interface { 18 type TQTestable interface {
15 Testable 19 Testable
16 20
17 CreateQueue(queueName string) 21 CreateQueue(queueName string)
18 GetScheduledTasks() QueueData 22 GetScheduledTasks() QueueData
19 GetTombstonedTasks() QueueData 23 GetTombstonedTasks() QueueData
20 GetTransactionTasks() AnonymousQueueData 24 GetTransactionTasks() AnonymousQueueData
21 ResetTasks() 25 ResetTasks()
22 } 26 }
OLDNEW
« no previous file with comments | « go/src/infra/gae/libs/wrapper/taskqueue.go ('k') | go/src/infra/gae/libs/wrapper/testable.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698