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

Unified Diff: service/info/interface.go

Issue 1871943003: Add Info Testable interface, implement for memory. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Fall through in filter. Created 4 years, 8 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 | « impl/prod/info.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/info/interface.go
diff --git a/service/info/interface.go b/service/info/interface.go
index a4541482fdebba59354e0b85681980dd715e259c..c138afa5854290ea0fcda2b2ff6b797045137029 100644
--- a/service/info/interface.go
+++ b/service/info/interface.go
@@ -36,4 +36,14 @@ type Interface interface {
AccessToken(scopes ...string) (token string, expiry time.Time, err error)
PublicCertificates() ([]Certificate, error)
SignBytes(bytes []byte) (keyName string, signature []byte, err error)
+
+ // Testable returns this Interface's Testable interface. Testing will return
+ // nil if testing is not supported in this implementation.
+ Testable() Testable
+}
+
+// Testable is an additional set of functions for testing instrumentation.
+type Testable interface {
+ SetVersionID(string) context.Context
+ SetRequestID(string) context.Context
}
« no previous file with comments | « impl/prod/info.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698