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: http://src.chromium.org/svn/trunk/src@49980 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: c607b10b61e49d75cd3b28f8e9214855e41a10f9
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser