Fix crash when querying a runtime config that is defined in environment
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 9 Aug 2013 13:23:56 +0000 (13:23 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 9 Aug 2013 13:23:56 +0000 (13:23 +0000)
commita1007def7ed27c9bc71b6d6b8c097848f3731568
tree4e3712c782e2230e383171eafdaea004486c300b
parentcbdcbd0b887fd639646bdabde76b20dd6e22f3e9
Fix crash when querying a runtime config that is defined in environment

Fix crash when querying a runtime config in case when there's no
skia.conf file and the config variable is still defined in the
environment.

Runs the added SkRTConf::UnitTest test as part of new "UnitTest" test.

BUG=skia:1494
R=bsalomon@google.com, humper@google.com

Author: kkinnunen@nvidia.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10654 2bbb7eff-a529-9590-31e7-b0007b416f81
gyp/tests.gyp
include/utils/SkRTConf.h
src/utils/SkRTConf.cpp
tests/UnitTestTest.cpp [new file with mode: 0644]