Add a unit test for EventRewriter to prevent a regression like https://codereview.chromium.org/12200002/.
Add a unit test for EventRewriter to prevent a regression like https://codereview.chromium.org/12200002/.

BUG=157065
TEST=Run the new test on trybot and locally. Confirm that all the tests in event_rewriter_unittest.cc including the DISABLED_ ones pass.
TEST=Also confirm that DISABLED_TestRewriteDiamondKey fails if we revert crrev.com/180367 .


Review URL: https://chromiumcodereview.appspot.com/12207035

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

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