Commit Graph

6 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
379d7830d9 Add tests for handling corrupted data
The MockFileSource will insert garbage on the reply and report as
a request done successfully. The network stack cannot detect this
kind of errors but the consumer should report it like we do for
network problems.
2015-05-28 09:43:56 +03:00
Konstantin Käfer
f4707f72e0 Replace mbgl::util::make_unique<> with std::make_unique<> 2015-05-26 17:57:38 +02:00
Thiago Marcos P. Santos
a20b89e4ff Merge pull request #1627 from mapbox/hide_logs
Add check for log messages on ResourceLoader tests
2015-05-22 18:00:07 +03:00
Thiago Marcos P. Santos
733539e36a Add check for log messages on ResourceLoader tests
This will make the tests less verbose and at the same
time make sure we are logging properly.
2015-05-22 17:24:38 +03:00
Thiago Marcos P. Santos
eaf1c24cdc Do not call abandon texture if there is no texture
Check if the texture was created before abandoning on SpriteAtlas
destructor. Linux driver was fine with that, but was crashing on Mac.
2015-05-22 15:21:39 +03:00
Thiago Marcos P. Santos
6624dbb225 Add ResourceLoader unit tests
This first test will simulate a request failure on every resource
directly or indirectly loaded by the ResourceLoader. The idea is
to verify whenever we are failing gracefully or not.
2015-05-22 10:44:18 +03:00