From bcbc1788b478b1e54079318ad073e8490aa66fae Mon Sep 17 00:00:00 2001 From: tfarina Date: Wed, 18 Jun 2014 14:32:48 -0700 Subject: Refactor how we handle resources path in Tests. This idea emerged while doing https://codereview.chromium.org/321723002/ (commit 880914c35c8f7fc2e9c57134134c883baf66e538). BUG=None TEST=make tests && out/Debug/tests R=mtklein@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/346453002 --- tests/FontHostTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/FontHostTest.cpp') diff --git a/tests/FontHostTest.cpp b/tests/FontHostTest.cpp index bc87aaa754..23625b3874 100644 --- a/tests/FontHostTest.cpp +++ b/tests/FontHostTest.cpp @@ -5,6 +5,7 @@ * found in the LICENSE file. */ +#include "Resources.h" #include "SkEndian.h" #include "SkFontStream.h" #include "SkOSFile.h" @@ -149,7 +150,7 @@ static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream) { static void test_fontstream(skiatest::Reporter* reporter) { // This test cannot run if there is no resource path. - SkString resourcePath = skiatest::Test::GetResourcePath(); + SkString resourcePath = GetResourcePath(); if (resourcePath.isEmpty()) { SkDebugf("Could not run fontstream test because resourcePath not specified."); return; -- cgit v1.2.3