summaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/braintree/manners/helper_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-11-23 15:53:48 -0800
committer=Corey Hulen <corey@hulen.com>2015-11-23 15:53:48 -0800
commit4f4cd5e63573da4d6edcc7d4213afaca67c19f88 (patch)
treecefbc7af53629d97644ca2f6b2369e9d879f0101 /Godeps/_workspace/src/github.com/braintree/manners/helper_test.go
parentf8a3c9a14edca6df0647d89cf225f2470cbe025c (diff)
downloadchat-4f4cd5e63573da4d6edcc7d4213afaca67c19f88.tar.gz
chat-4f4cd5e63573da4d6edcc7d4213afaca67c19f88.tar.bz2
chat-4f4cd5e63573da4d6edcc7d4213afaca67c19f88.zip
upgrading libs
Diffstat (limited to 'Godeps/_workspace/src/github.com/braintree/manners/helper_test.go')
-rw-r--r--Godeps/_workspace/src/github.com/braintree/manners/helper_test.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/Godeps/_workspace/src/github.com/braintree/manners/helper_test.go b/Godeps/_workspace/src/github.com/braintree/manners/helper_test.go
deleted file mode 100644
index ea721a180..000000000
--- a/Godeps/_workspace/src/github.com/braintree/manners/helper_test.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package manners
-
-import (
- "net/http"
- "time"
-)
-
-// A response handler that blocks until it receives a signal; simulates an
-// arbitrarily long web request. The "ready" channel is to prevent a race
-// condition in the test where the test moves on before the server is ready
-// to handle the request.
-func newBlockingHandler(ready, done chan bool) *blockingHandler {
- return &blockingHandler{ready, done}
-}
-
-type blockingHandler struct {
- ready chan bool
- done chan bool
-}
-
-func (h *blockingHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
- h.ready <- true
- time.Sleep(1e2)
- h.done <- true
-}
-
-// A response handler that does nothing.
-func newTestHandler() testHandler {
- return testHandler{}
-}
-
-type testHandler struct{}
-
-func (h testHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) {}