summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 16:43:19 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 16:43:19 +0000
commit0006be64ca437efd23de16ea5eb0d13037ebc261 (patch)
treebc223ae81d99a928fd4fd67f14f09b229dc81bd4
parentd58ff5c8d75333d57b195a67d8241e5767335248 (diff)
downloadchromium_src-0006be64ca437efd23de16ea5eb0d13037ebc261.zip
chromium_src-0006be64ca437efd23de16ea5eb0d13037ebc261.tar.gz
chromium_src-0006be64ca437efd23de16ea5eb0d13037ebc261.tar.bz2
Initialize memory to avoid UMR in unit test.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1445 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/common/gfx/icon_util_unittest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/common/gfx/icon_util_unittest.cc b/chrome/common/gfx/icon_util_unittest.cc
index 9952b90..e5f12a1 100644
--- a/chrome/common/gfx/icon_util_unittest.cc
+++ b/chrome/common/gfx/icon_util_unittest.cc
@@ -147,6 +147,8 @@ TEST_F(IconUtilTest, TestCreateIconFileInvalidParameters) {
// Invalid file name.
bitmap->allocPixels();
+ // Setting the pixels to black.
+ memset(bitmap->getPixels(), 0, bitmap->width() * bitmap->height() * 4);
EXPECT_FALSE(IconUtil::CreateIconFileFromSkBitmap(*bitmap,
invalid_icon_filename));
}