Chromium Code Reviews| Index: tests/CanvasTest.cpp |
| diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp |
| index 3f28060c853304372c675bc8877b3b406553e0c1..205e4421dfc620b702398a0c5589401aa29d115b 100644 |
| --- a/tests/CanvasTest.cpp |
| +++ b/tests/CanvasTest.cpp |
| @@ -602,53 +602,6 @@ static void AssertCanvasStatesEqual(skiatest::Reporter* reporter, const TestData |
| */ |
| } |
| -// The following class groups static functions that need to access |
| -// the privates members of SkPictureRecord |
| -class SkPictureTester { |
|
Justin Novosad
2014/10/28 14:24:24
This class is still declared as a friend in SkPict
Rémi Piotaix
2014/10/28 14:57:03
Done.
|
| -private: |
| - static int EQ(const SkFlatData* a, const SkFlatData* b) { |
| - return *a == *b; |
| - } |
| - |
| - static void AssertFlattenedObjectsEqual( |
| - SkPictureRecord* referenceRecord, |
| - SkPictureRecord* testRecord, |
| - skiatest::Reporter* reporter, |
| - CanvasTestStep* testStep) { |
| - |
| - REPORTER_ASSERT_MESSAGE(reporter, |
| - referenceRecord->fBitmapHeap->count() == |
| - testRecord->fBitmapHeap->count(), testStep->assertMessage()); |
| - REPORTER_ASSERT_MESSAGE(reporter, |
| - referenceRecord->fPaints.count() == |
| - testRecord->fPaints.count(), testStep->assertMessage()); |
| - for (int i = 0; i < referenceRecord->fPaints.count(); ++i) { |
| - REPORTER_ASSERT_MESSAGE(reporter, |
| - EQ(referenceRecord->fPaints[i], testRecord->fPaints[i]), |
| - testStep->assertMessage()); |
| - } |
| - REPORTER_ASSERT_MESSAGE(reporter, |
| - !referenceRecord->fPathHeap == !testRecord->fPathHeap, |
| - testStep->assertMessage()); |
| - // The following tests are commented out because they currently |
| - // fail. Issue: http://code.google.com/p/skia/issues/detail?id=507 |
| - /* |
| - if (referenceRecord->fPathHeap) { |
| - REPORTER_ASSERT_MESSAGE(reporter, |
| - referenceRecord->fPathHeap->count() == |
| - testRecord->fPathHeap->count(), |
| - testStep->assertMessage()); |
| - for (int i = 0; i < referenceRecord->fPathHeap->count(); ++i) { |
| - REPORTER_ASSERT_MESSAGE(reporter, |
| - (*referenceRecord->fPathHeap)[i] == |
| - (*testRecord->fPathHeap)[i], testStep->assertMessage()); |
| - } |
| - } |
| - */ |
| - |
| - } |
| -}; |
| - |
| static void TestPdfDevice(skiatest::Reporter* reporter, |
| const TestData& d, |
| CanvasTestStep* testStep) { |