net: add unit tests for read/write deadlines The tests verify that deadlines are "persistent", read/write deadlines do not interfere, can be reset, read deadline can be set with both SetDeadline() and SetReadDeadline(), etc.
net: add unit tests for read/write deadlines
The tests verify that deadlines are "persistent",
read/write deadlines do not interfere, can be reset,
read deadline can be set with both SetDeadline()
and SetReadDeadline(), etc.

R=golang-dev, bradfitz, dave
CC=golang-dev
http://codereview.appspot.com/6850070

mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,webfd/go-zh,rdp/rogerpack2005-golang,webfd/go-zh,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,bryanxu/go-zh,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,scirelli/scirelli-go,rflanagan/reginaldflanagan-project1,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,rflanagan/reginaldflanagan-project1,d0f/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,mhennings/marcohennings-go,rflanagan/reginaldflanagan-project1,rdp/rogerpack2005-golang,bryanxu/go-zh,d0f/go-zh,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,scirelli/scirelli-go,scirelli/scirelli-go,d0f/go-zh,scirelli/scirelli-go,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,sanjosh/sanjos100-tipc,scirelli/scirelli-go,webfd/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,scirelli/scirelli-go,bryanxu/go-zh,scirelli/scirelli-go,bryanxu/go-zh,webfd/go-zh,d0f/go-zh,d0f/go-zh,webfd/go-zh,rflanagan/reginaldflanagan-project1,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,mhennings/marcohennings-go,webfd/go-zh,rflanagan/reginaldflanagan-project1,webfd/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,bryanxu/go-zh,d0f/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,rflanagan/reginaldflanagan-project1,rdp/rogerpack2005-golang,mhennings/marcohennings-go,rdp/rogerpack2005-golang,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,bryanxu/go-zh,rflanagan/reginaldflanagan-project1,mhennings/marcohennings-go