Add a feature to the MockSocket so that it can support simulation of partial writes.
Add a feature to the MockSocket so that it can support simulation
of partial writes.

For example, suppose the application under test is doing a write
such as:
   Write("foobar", 6);  // 6 bytes

Normally you could test this with
   MockWrite(true, "foobar", 6);

Now you can also test this with:
   WriteList {
     MockWrite(true, "foo", 3);
     MockWrite(true, "bar", 3);
   }

BUG=none
TEST=this is the test!


Review URL: http://codereview.chromium.org/437031

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@32913 0039d316-1c4b-4281-b951-d872f2087c98

hgl888/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,ltilve/chromium,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,nacl-webkit/chrome_deps,dushu1203/chromium.src,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,ChromiumWebApps/chromium,patrickm/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,timopulkkinen/BubbleFish,krieger-od/nwjs_chromium.src,patrickm/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,littlstar/chromium.src,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,ltilve/chromium,fujunwei/chromium-crosswalk,timopulkkinen/BubbleFish,hujiajie/pa-chromium,Chilledheart/chromium,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,keishi/chromium,keishi/chromium,nacl-webkit/chrome_deps,Jonekee/chromium.src,robclark/chromium,Fireblend/chromium-crosswalk,M4sse/chromium.src,jaruba/chromium.src,axinging/chromium-crosswalk,zcbenz/cefode-chromium,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,M4sse/chromium.src,mogoweb/chromium-crosswalk,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,keishi/chromium,junmin-zhu/chromium-rivertrail,rogerwang/chromium,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,dushu1203/chromium.src,ChromiumWebApps/chromium,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,littlstar/chromium.src,zcbenz/cefode-chromium,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,Chilledheart/chromium,rogerwang/chromium,dushu1203/chromium.src,chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,keishi/chromium,M4sse/chromium.src,keishi/chromium,Jonekee/chromium.src,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,keishi/chromium,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,Chilledheart/chromium,dushu1203/chromium.src,timopulkkinen/BubbleFish,Chilledheart/chromium,nacl-webkit/chrome_deps,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,ltilve/chromium,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,robclark/chromium,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,jaruba/chromium.src,krieger-od/nwjs_chromium.src,ltilve/chromium,patrickm/chromium.src,chuan9/chromium-crosswalk,markYoungH/chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,patrickm/chromium.src,dushu1203/chromium.src,markYoungH/chromium.src,nacl-webkit/chrome_deps,markYoungH/chromium.src,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,rogerwang/chromium,keishi/chromium,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,patrickm/chromium.src,anirudhSK/chromium,keishi/chromium,Jonekee/chromium.src,nacl-webkit/chrome_deps,Chilledheart/chromium,ChromiumWebApps/chromium,littlstar/chromium.src,jaruba/chromium.src,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,junmin-zhu/chromium-rivertrail,rogerwang/chromium,anirudhSK/chromium,ChromiumWebApps/chromium,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,ondra-novak/chromium.src,Just-D/chromium-1,Just-D/chromium-1,dednal/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,chuan9/chromium-crosswalk,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,timopulkkinen/BubbleFish,dednal/chromium.src,dednal/chromium.src,mogoweb/chromium-crosswalk,dushu1203/chromium.src,Chilledheart/chromium,Just-D/chromium-1,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,dushu1203/chromium.src,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,jaruba/chromium.src,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,ltilve/chromium,patrickm/chromium.src,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,patrickm/chromium.src,dednal/chromium.src,zcbenz/cefode-chromium,keishi/chromium,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,rogerwang/chromium,keishi/chromium,robclark/chromium,anirudhSK/chromium,hujiajie/pa-chromium,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,markYoungH/chromium.src,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,Jonekee/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,M4sse/chromium.src,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,Fireblend/chromium-crosswalk,dushu1203/chromium.src,rogerwang/chromium,hujiajie/pa-chromium,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,keishi/chromium,anirudhSK/chromium,dednal/chromium.src,axinging/chromium-crosswalk,axinging/chromium-crosswalk,patrickm/chromium.src,Just-D/chromium-1,ltilve/chromium,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,robclark/chromium,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,robclark/chromium,anirudhSK/chromium,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,hujiajie/pa-chromium,littlstar/chromium.src,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,M4sse/chromium.src,ChromiumWebApps/chromium,rogerwang/chromium,Jonekee/chromium.src,robclark/chromium,axinging/chromium-crosswalk,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,robclark/chromium,jaruba/chromium.src,jaruba/chromium.src,ChromiumWebApps/chromium,rogerwang/chromium,robclark/chromium,Fireblend/chromium-crosswalk,littlstar/chromium.src,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,rogerwang/chromium,ondra-novak/chromium.src,zcbenz/cefode-chromium,hujiajie/pa-chromium,zcbenz/cefode-chromium,ChromiumWebApps/chromium,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,robclark/chromium,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,Just-D/chromium-1,PeterWangIntel/chromium-crosswalk,ltilve/chromium,Pluto-tv/chromium-crosswalk,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,markYoungH/chromium.src,M4sse/chromium.src,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,dednal/chromium.src,pozdnyakov/chromium-crosswalk,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,ltilve/chromium,rogerwang/chromium,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,zcbenz/cefode-chromium,markYoungH/chromium.src