summaryrefslogtreecommitdiff
path: root/transport_test.go
AgeCommit message (Collapse)Author
2016-08-26oauth2, jws, internal: more style fixes for bad test messagesJaana Burcu Dogan
Change-Id: Id2805fd77fb11d975414eb66689efab284a18805 Reviewed-on: https://go-review.googlesource.com/27911 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-01-21transport_test: added TestNilTokenSource + close res.Body per GETEmmanuel Odeke
+ TestTransportNilTokenSource added. + res.Body.Close() in tests to cut leaks and also to increase test coverage for *onEOFReader. Change-Id: I1b962b7ecbc4f6f8b5bcccc6870c025e89ad9c1a Reviewed-on: https://go-review.googlesource.com/18141 Reviewed-by: Burcu Dogan <jbd@google.com>
2015-05-26oauth2: ensure case sensitivity for Bearer, MAC, and Basic in auth headerAndrew Etter
Fixes #113 Change-Id: Id2ba98809a536f1dc1fab5b30c49aeedd2fe4125 Reviewed-on: https://go-review.googlesource.com/9852 Reviewed-by: Burcu Dogan <jbd@google.com>
2014-12-30oauth2, oauth2/google: add, use ReuseTokenSourceBrad Fitzpatrick
Token caching is now done whenever you make a Client, and ReuseTokenSource is exported from the oauth2 package and used by the Google TokenSources (Compute and App Engine). Token.Expired is now Token.Valid, and works on nil receivers. Some other wording cleanups in the process. All tests pass. App Engine should pass, but is untested. Change-Id: Ibe1d2599ac3ccfe9b399b1672f74bb24cfc8d311 Reviewed-on: https://go-review.googlesource.com/2195 Reviewed-by: Burcu Dogan <jbd@google.com>
2014-12-16oauth2: rewrite google package, fix the broken buildBurcu Dogan
Change-Id: I2753a88d7be483bdbc0cac09a1beccc4806ea4bc Reviewed-on: https://go-review.googlesource.com/1361 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Andrew Gerrand <adg@golang.org>
2014-11-13Add Cacher interface.Burcu Dogan
2014-11-08Introduce an option function typeBurcu Dogan
- Reduce the duplicate code by merging the flows and determining the flow type by looking at the provided options. - Options as a function type allows us to validate an individual an option in its scope and makes it easier to compose the built-in options with the third-party ones.
2014-08-14Don't provide a Transport interface but provide a http.RoundTripper ↵Burcu Dogan
implementation.
2014-07-11oauth2: don't use http.DefaultTransport.Burcu Dogan
http.DefaultTransport is not available on App Engine.
2014-07-08remove cacheJohan Euphrosine
2014-06-22Caches should return an error instead of invoking a handler.Burcu Dogan
2014-06-22Use Errorfs to fail the tests.Burcu Dogan
2014-06-17Add tests.Burcu Dogan