summaryrefslogtreecommitdiff
path: root/test/DeltaTests.cpp
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2018-04-29 20:14:33 -0400
committerHenry Castro <hcastro@collabora.com>2018-04-29 20:27:14 -0400
commit329b3518e7d5850a6b661d5ab597ab6cd48b8f79 (patch)
tree32b75eccabd568102431c30e6e36cfed9816fddf /test/DeltaTests.cpp
parent80bbab39f0d045fb2c9bbef175936458fd567d4d (diff)
wsd:test: use TDOC preprocessing symbol
Change-Id: Ib00fc7c9fe7ebfd308b330d430e8f2449e5da7cd
Diffstat (limited to 'test/DeltaTests.cpp')
-rw-r--r--test/DeltaTests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/DeltaTests.cpp b/test/DeltaTests.cpp
index f324cf9d4..d3f020d25 100644
--- a/test/DeltaTests.cpp
+++ b/test/DeltaTests.cpp
@@ -156,14 +156,14 @@ void DeltaTests::testDeltaSequence()
png_uint_32 height, width, rowBytes;
const TileWireId textWid = 1;
std::vector<char> text =
- DeltaTests::loadPng("data/delta-text.png",
+ DeltaTests::loadPng(TDOC "/delta-text.png",
height, width, rowBytes);
CPPUNIT_ASSERT(height == 256 && width == 256 && rowBytes == 256*4);
CPPUNIT_ASSERT_EQUAL(size_t(256 * 256 * 4), text.size());
const TileWireId text2Wid = 2;
std::vector<char> text2 =
- DeltaTests::loadPng("data/delta-text2.png",
+ DeltaTests::loadPng(TDOC "/delta-text2.png",
height, width, rowBytes);
CPPUNIT_ASSERT(height == 256 && width == 256 && rowBytes == 256*4);
CPPUNIT_ASSERT_EQUAL(size_t(256 * 256 * 4), text2.size());