From d2700eec7eb2e26beb206b88a0f0b6f3c5f49118 Mon Sep 17 00:00:00 2001 From: "djsollen@google.com" Date: Wed, 30 May 2012 16:54:13 +0000 Subject: Refactor dictionaries for use by entities other than just SkPicture Review URL: https://codereview.appspot.com/6101043 git-svn-id: http://skia.googlecode.com/svn/trunk@4077 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/CanvasTest.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index 3efbdea148..814386e9fa 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -583,14 +583,14 @@ public: // Verify that deserialization-serialization round trip conserves all // data by comparing referenceRecord to roundTripRecord - REPORTER_ASSERT_MESSAGE(reporter, referenceRecord->fBitmapIndex == - roundTripRecord->fBitmapIndex, testStep->assertMessage()); - REPORTER_ASSERT_MESSAGE(reporter, referenceRecord->fMatrixIndex == - roundTripRecord->fMatrixIndex, testStep->assertMessage()); - REPORTER_ASSERT_MESSAGE(reporter, referenceRecord->fPaintIndex == - roundTripRecord->fPaintIndex, testStep->assertMessage()); - REPORTER_ASSERT_MESSAGE(reporter, referenceRecord->fRegionIndex == - roundTripRecord->fRegionIndex, testStep->assertMessage()); + REPORTER_ASSERT_MESSAGE(reporter, referenceRecord->fBitmaps.count() == + roundTripRecord->fBitmaps.count(), testStep->assertMessage()); + REPORTER_ASSERT_MESSAGE(reporter, referenceRecord->fMatrices.count() == + roundTripRecord->fMatrices.count(), testStep->assertMessage()); + REPORTER_ASSERT_MESSAGE(reporter, referenceRecord->fPaints.count() == + roundTripRecord->fPaints.count(), testStep->assertMessage()); + REPORTER_ASSERT_MESSAGE(reporter, referenceRecord->fRegions.count() == + roundTripRecord->fRegions.count(), testStep->assertMessage()); char referenceBuffer[kMaxPictureBufferSize]; SkMemoryWStream referenceStream(referenceBuffer, kMaxPictureBufferSize); -- cgit v1.2.3