| Index: tests/ImageDecodingTest.cpp
|
| diff --git a/tests/ImageDecodingTest.cpp b/tests/ImageDecodingTest.cpp
|
| index 89db3990e4b8703b6e1ece595c68ce425cec72b2..d070f615b351285ef5d0bdfa0c3adc1abed2d308 100644
|
| --- a/tests/ImageDecodingTest.cpp
|
| +++ b/tests/ImageDecodingTest.cpp
|
| @@ -503,12 +503,9 @@ static SkPixelRef* install_pixel_ref(SkBitmap* bitmap,
|
| * SkInstallDiscardablePixelRef functions.
|
| */
|
| DEF_TEST(ImprovedBitmapFactory, reporter) {
|
| - SkString resourcePath = GetResourcePath();
|
| - SkString path = SkOSPath::SkPathJoin(
|
| - resourcePath.c_str(), "randPixels.png");
|
| - SkAutoTUnref<SkStreamRewindable> stream(
|
| - SkStream::NewFromFile(path.c_str()));
|
| - if (sk_exists(path.c_str())) {
|
| + SkString pngFilename = GetResourcePath("randPixels.png");
|
| + SkAutoTUnref<SkStreamRewindable> stream(SkStream::NewFromFile(pngFilename.c_str()));
|
| + if (sk_exists(pngFilename.c_str())) {
|
| SkBitmap bm;
|
| SkAssertResult(bm.setInfo(SkImageInfo::MakeN32Premul(1, 1)));
|
| REPORTER_ASSERT(reporter,
|
|
|