diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-31 16:22:57 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-31 16:22:57 +0000 |
commit | c6d3c444ca76feba5a8937dbc80626ade5347275 (patch) | |
tree | f0449476185aa082fc75f2bb6192465ab6ceff55 /tests/Writer32Test.cpp | |
parent | 0a74106aaae65151715482b6d0e35906b8a4c9e5 (diff) |
Have peek32 return uint32_t& to make it harder to look at more than 4 bytes.
BUG=skia:
R=reed@google.com, robertphillips@google.com
Author: mtklein@google.com
Review URL: https://codereview.chromium.org/145053003
git-svn-id: http://skia.googlecode.com/svn/trunk@13265 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/Writer32Test.cpp')
-rw-r--r-- | tests/Writer32Test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/Writer32Test.cpp b/tests/Writer32Test.cpp index fa024baffd..2f8b5c6edf 100644 --- a/tests/Writer32Test.cpp +++ b/tests/Writer32Test.cpp @@ -102,8 +102,7 @@ static void test1(skiatest::Reporter* reporter, SkWriter32* writer) { for (size_t i = 0; i < SK_ARRAY_COUNT(data); ++i) { REPORTER_ASSERT(reporter, i*4 == writer->bytesWritten()); writer->write32(data[i]); - uint32_t* addr = writer->peek32(i * 4); - REPORTER_ASSERT(reporter, data[i] == *addr); + REPORTER_ASSERT(reporter, data[i] == writer->read32At(i*4)); } char buffer[sizeof(data)]; |