Fixed icon_util_unittest writing files to checkout directory.
commit806a091daea55c9191a495fd2ba187e1fe506a45
authormgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 18 Apr 2013 06:30:36 +0000 (18 06:30 +0000)
committermgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 18 Apr 2013 06:30:36 +0000 (18 06:30 +0000)
tree604c54b420eaf237ceb9aab311d75ca006520cc7
parent609ba05d8083b6aef96f9f844f043af2854c55ee
Fixed icon_util_unittest writing files to checkout directory.

- Does not create or attempt to create files in .\ui\gfx\test\data or C:\. Uses
  the scoped temporary directory instead.
- Calls CreateUniqueTempDir so that the scoped temporary directory is actually a
  temporary directory, and not the current working directory.

Also made other miscellaneous fixes:

- Consistently uses "temp_test_icon.ico" instead of "test.ico".
- Tests that CreateIconFileFromSkBitmap with invalid parameters actually does
  not create the file (instead of trusting its return value).
- Initializes test class using SetUp instead of constructor.
- Fixed spelling of "dimensions".

BUG=118246

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194806 0039d316-1c4b-4281-b951-d872f2087c98
ui/gfx/icon_util_unittest.cc