Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: tests/CanvasTest.cpp

Issue 681083002: Removing dead code from CanvasTest (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove friend Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPictureRecord.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
-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) {
« no previous file with comments | « src/core/SkPictureRecord.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698