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

Unified Diff: filter/count/user.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Lightning talk licenses. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « filter/count/tq.go ('k') | filter/dsQueryBatch/filter_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/user.go
diff --git a/filter/count/user.go b/filter/count/user.go
index c511a295881858b39e7ca72d89ad1c9bb810d167..b87eba18f2f0382574879b7216f808c60810ed92 100644
--- a/filter/count/user.go
+++ b/filter/count/user.go
@@ -23,10 +23,10 @@ type UserCounter struct {
type userCounter struct {
c *UserCounter
- u user.Interface
+ u user.RawInterface
}
-var _ user.Interface = (*userCounter)(nil)
+var _ user.RawInterface = (*userCounter)(nil)
func (u *userCounter) Current() *user.User {
u.c.Current.up()
@@ -63,14 +63,14 @@ func (u *userCounter) OAuthConsumerKey() (string, error) {
return ret, u.c.OAuthConsumerKey.up(err)
}
-func (u *userCounter) Testable() user.Testable {
- return u.u.Testable()
+func (u *userCounter) GetTestable() user.Testable {
+ return u.u.GetTestable()
}
// FilterUser installs a counter User filter in the context.
func FilterUser(c context.Context) (context.Context, *UserCounter) {
state := &UserCounter{}
- return user.AddFilters(c, func(ic context.Context, u user.Interface) user.Interface {
+ return user.AddFilters(c, func(ic context.Context, u user.RawInterface) user.RawInterface {
return &userCounter{state, u}
}), state
}
« no previous file with comments | « filter/count/tq.go ('k') | filter/dsQueryBatch/filter_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698