Fix integer cast warnings for cast_unittest

TBR=justinlin@chromium.org

Review URL: https://codereview.chromium.org/25846005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226884 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 226884
Linux: fix issue with wrong path to user data dir being used.

BUG=303917
R=iannucci@chromium.org

Review URL: https://codereview.chromium.org/25897003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226886 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 226886