diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-02-17 15:53:14 +0100 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-03-22 11:56:01 -0700 |
commit | 1dd81d9776baf9b9ef61b05d29f7acbb0f2a1508 (patch) | |
tree | ded904ed0a8b2d9cb0f3f784d683162e5917e99f /test/fixtures/util.cpp | |
parent | c608803ca95e833c9312c0f1cd622594224d5458 (diff) | |
download | qtlocation-mapboxgl-1dd81d9776baf9b9ef61b05d29f7acbb0f2a1508.tar.gz |
[test] remove crc64 and compare images
boost's crc64 breaks on iOS
Diffstat (limited to 'test/fixtures/util.cpp')
-rw-r--r-- | test/fixtures/util.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/fixtures/util.cpp b/test/fixtures/util.cpp index 5617b15e8b..0829fe72d8 100644 --- a/test/fixtures/util.cpp +++ b/test/fixtures/util.cpp @@ -8,11 +8,6 @@ #include <mapbox/pixelmatch.hpp> -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wshadow" -#include <boost/crc.hpp> -#pragma GCC diagnostic pop - #include <csignal> #include <future> @@ -90,22 +85,6 @@ Server::~Server() { } } - -// from https://gist.github.com/ArtemGr/997887 -uint64_t crc64(const char* data, size_t size) { - boost::crc_optimal<64, 0x04C11DB7, 0, 0, false, false> crc; - crc.process_bytes(data, size); - return crc.checksum(); -} - -uint64_t crc64(const std::string& str) { - return crc64(str.data(), str.size()); -} - -uint64_t crc64(const PremultipliedImage &image) { - return crc64(reinterpret_cast<const char*>(image.data.get()), image.size()); -} - PremultipliedImage render(Map& map) { std::promise<PremultipliedImage> promise; map.renderStill([&](std::exception_ptr, PremultipliedImage&& image) { |