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

Side by Side Diff: service/user/testing.go

Issue 1522783002: Add User Testing interface to impl/memory. (Closed) Base URL: https://github.com/luci/gae.git@logging_service
Patch Set: add logout Created 5 years 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
« impl/memory/user.go ('K') | « service/user/interface.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 package user
6
7 // Testing is the interface that test implimentations will provide.
8 type Testing interface {
9 // SetUser sets the user to a pre-populated User object.
10 SetUser(*User)
11
12 // Login will generate and set a new User object with values derived fro m
13 // email and admin values.
14 Login(email string, admin bool)
15
16 // Equivalent to SetUser(nil), but a bit more obvious to read in the cod e :).
17 Logout()
18 }
OLDNEW
« impl/memory/user.go ('K') | « service/user/interface.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698