Landing CL http://codereview.chromium.org/2767013/show on behalf of petkov@chromium.org:
Landing CL http://codereview.chromium.org/2767013/show on behalf of petkov@chromium.org:

Add one more Chrome OS hardware class MetricsLog unit tests. 

Since the hardware class attribute is added to the XML when the log is 
closed, it's important to test for its presence in the encoded string 
when the log contains some events. The existing unit test covers only 
the case when the log is empty. 

BUG=none 
TEST=ran unit tests 


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

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

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