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

Unified Diff: tests/RecorderTest.cpp

Issue 830083002: remove unused drawData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 12 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/utils/debugger/SkDrawCommand.cpp ('k') | tests/SerializationTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/RecorderTest.cpp
diff --git a/tests/RecorderTest.cpp b/tests/RecorderTest.cpp
index e0abacef38648f000d7a07728278cdb1f8f62389..4fac1af58c274ed994619503c4a97f766972897d 100644
--- a/tests/RecorderTest.cpp
+++ b/tests/RecorderTest.cpp
@@ -69,20 +69,6 @@ DEF_TEST(Recorder_CommentGroups, r) {
REPORTER_ASSERT(r, 1 == tally.count<SkRecords::EndCommentGroup>());
}
-// DrawData is similar to comment groups. It doesn't affect drawing, but
-// it's a pass-through we provide to the client. Again, a simple reg. test.
-DEF_TEST(Recorder_DrawData, r) {
- SkRecord record;
- SkRecorder recorder(&record, 100, 100);
-
- const char* data = "This sure is some data, eh?";
- recorder.drawData(data, strlen(data));
-
- Tally tally;
- tally.apply(record);
- REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawData>());
-}
-
// Regression test for leaking refs held by optional arguments.
DEF_TEST(Recorder_RefLeaking, r) {
// We use SaveLayer to test:
« no previous file with comments | « src/utils/debugger/SkDrawCommand.cpp ('k') | tests/SerializationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698