aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/StreamTest.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2016-12-16 16:51:41 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-16 19:02:53 +0000
commit884300dca5531f60535501424bbd86b30e20450a (patch)
treebd55d2a075890c222fc70dda7043ddfc08967491 /tests/StreamTest.cpp
parent9f67f044dd8765184669af6fd38e7feeff8777f9 (diff)
Remove SkDynamicMemoryWStream::getOffset.
This method does the same thing as ::bytesWritten but has a confusing name. It appears there are no external users, so remove it. Change-Id: I06aed269200c34c2dda36605092f8ea37fcec693 Reviewed-on: https://skia-review.googlesource.com/6188 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'tests/StreamTest.cpp')
-rw-r--r--tests/StreamTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/StreamTest.cpp b/tests/StreamTest.cpp
index b64de6926f..4b8923f399 100644
--- a/tests/StreamTest.cpp
+++ b/tests/StreamTest.cpp
@@ -84,7 +84,7 @@ static void TestWStream(skiatest::Reporter* reporter) {
for (i = 0; i < 100; i++) {
REPORTER_ASSERT(reporter, ds.write(s, 26));
}
- REPORTER_ASSERT(reporter, ds.getOffset() == 100 * 26);
+ REPORTER_ASSERT(reporter, ds.bytesWritten() == 100 * 26);
char* dst = new char[100 * 26 + 1];
dst[100*26] = '*';
@@ -97,7 +97,7 @@ static void TestWStream(skiatest::Reporter* reporter) {
{
std::unique_ptr<SkStreamAsset> stream(ds.detachAsStream());
REPORTER_ASSERT(reporter, 100 * 26 == stream->getLength());
- REPORTER_ASSERT(reporter, ds.getOffset() == 0);
+ REPORTER_ASSERT(reporter, ds.bytesWritten() == 0);
test_loop_stream(reporter, stream.get(), s, 26, 100);
std::unique_ptr<SkStreamAsset> stream2(stream->duplicate());
@@ -115,12 +115,12 @@ static void TestWStream(skiatest::Reporter* reporter) {
for (i = 0; i < 100; i++) {
REPORTER_ASSERT(reporter, ds.write(s, 26));
}
- REPORTER_ASSERT(reporter, ds.getOffset() == 100 * 26);
+ REPORTER_ASSERT(reporter, ds.bytesWritten() == 100 * 26);
{
// Test that this works after a snapshot.
std::unique_ptr<SkStreamAsset> stream(ds.detachAsStream());
- REPORTER_ASSERT(reporter, ds.getOffset() == 0);
+ REPORTER_ASSERT(reporter, ds.bytesWritten() == 0);
test_loop_stream(reporter, stream.get(), s, 26, 100);
std::unique_ptr<SkStreamAsset> stream2(stream->duplicate());