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

Unified Diff: service/user/interface.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 side-by-side diff with in-line comments
Download patch
Index: service/user/interface.go
diff --git a/service/user/interface.go b/service/user/interface.go
index 4339c820a1ad15185b539d03120ea2718c65a3d5..7233bd4548464716d6b6f93943fda91259459198 100644
--- a/service/user/interface.go
+++ b/service/user/interface.go
@@ -16,4 +16,10 @@ type Interface interface {
LogoutURL(dest string) (string, error)
OAuthConsumerKey() (string, error)
+
+ // If this implementation supports it, this will return an instance of the
+ // Testing object for this service, which will let you 'log in' virtual users
+ // in your test cases. If the implementation doesn't support it, it will
+ // return nil.
+ Testing() Testing
}
« impl/memory/user.go ('K') | « impl/prod/user.go ('k') | service/user/testing.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698