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

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: rebase 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
« no previous file with comments | « impl/prod/user.go ('k') | service/user/testable.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/user/interface.go
diff --git a/service/user/interface.go b/service/user/interface.go
index 4339c820a1ad15185b539d03120ea2718c65a3d5..9c4b18856d28585648933a4d2942c4606454c641 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
+ // Testable 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.
+ Testable() Testable
}
« no previous file with comments | « impl/prod/user.go ('k') | service/user/testable.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698