diff options
author | Ben Wagner <bungeman@google.com> | 2017-03-10 13:08:15 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-10 19:58:46 +0000 |
commit | 4d1955c43aaab045511b74a495dfbea4ef0057c5 (patch) | |
tree | 23d0f457f69b98bde35dc9a3afa32451ee5f6694 /tests | |
parent | dc9f0dbe4cdcdf6fead5fc28532d58f7d998a447 (diff) |
Fix SkFILEStream.
Change-Id: I8c66e4e3e857227aed3d0bc497982f4c0d96d917
Reviewed-on: https://skia-review.googlesource.com/9498
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PathOpsExtendedTest.cpp | 2 | ||||
-rw-r--r-- | tests/StreamTest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp index 279faa422c..8f24adf3ba 100644 --- a/tests/PathOpsExtendedTest.cpp +++ b/tests/PathOpsExtendedTest.cpp @@ -616,7 +616,7 @@ void initializeTests(skiatest::Reporter* reporter, const char* test) { inData.setCount((int) inFile.getLength()); size_t inLen = inData.count(); inFile.read(inData.begin(), inLen); - inFile.setPath(nullptr); + inFile.close(); char* insert = strstr(inData.begin(), marker); if (insert) { insert += sizeof(marker) - 1; diff --git a/tests/StreamTest.cpp b/tests/StreamTest.cpp index fba09c989a..2e476a1858 100644 --- a/tests/StreamTest.cpp +++ b/tests/StreamTest.cpp @@ -69,7 +69,7 @@ static void test_filestreams(skiatest::Reporter* reporter, const char* tmpDir) { { FILE* file = ::fopen(path.c_str(), "rb"); - SkFILEStream stream(file, SkFILEStream::kCallerPasses_Ownership); + SkFILEStream stream(file); REPORTER_ASSERT(reporter, stream.isValid()); test_loop_stream(reporter, &stream, s, 26, 100); |