summaryrefslogtreecommitdiff
path: root/test/fixtures
Commit message (Collapse)AuthorAgeFilesLines
* [core] Implement a vacuum strategy for the offline databaseJohn Firebaugh2016-03-171-0/+0
| | | | Enable `PRAGMA auto_vacuum = INCREMENTAL`, and perform a `PRAGMA incremental_vacuum` when deleting an offline region.
* [core] Limit total number of offline Mapbox tilesJohn Firebaugh2016-02-241-0/+17
|
* [tests] Add test for Map::updatePointAnnotationJohn Firebaugh2016-02-122-0/+0
|
* [core] Retry errors encountered during offline downloadsJohn Firebaugh2016-02-102-13/+16
|
* [core] Interface and implementation for offlineJohn Firebaugh2016-02-104-0/+36
|
* [core] Reimplement existing caching within an offline-capable database schemaJohn Firebaugh2016-02-1016-93/+11
|
* [core] Cache with mapbox:// tile URLsJohn Firebaugh2016-02-102-2/+2
|
* [core] Add a method for statically evaluating font stacks used by a styleJohn Firebaugh2016-02-101-0/+38
|
* [tests] Don't call the callback for cancelled responsesJohn Firebaugh2016-02-042-11/+13
| | | | | | StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback". Fixes #3784
* [core] Normalize only raster source tile URLsJohn Firebaugh2016-02-012-0/+16
|
* [tests] Refactor and make MockFileSource more generalJohn Firebaugh2016-02-015-128/+111
| | | | | | Now it works more like StubStyleObserver: you can assign std::functions to specific slots based on resource type. Rewrite resource loading tests in that style, making them less like integration tests of Style and more like unit tests of Source, GlyphStore, and SpriteStore.
* Cleanup std::chrono usageBruno de Oliveira Abinader2016-01-253-4/+6
| | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-201-0/+0
| | | | | | | This reverts commit 6709bdcacd5a45a10b554f3f225206c9494e5e43. There was an issue with the script that removes '-lwebp' from WebP linker flags, since we're statically linking. This is now fixed.
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-192-0/+6
| | | | | | | | | | | | the SpriteImage constructor signature changes from SpriteImage( uint16_t width, uint16_t height, float pixelRatio, std::string&& data, bool sdf = false); to SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
* Revert WebP support due to broken buildsJohn Firebaugh2016-01-191-0/+0
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-191-0/+0
| | | | | | | - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354
* [core] use stale glyphsKonstantin Käfer2016-01-153-0/+39
| | | | Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
* [core] use stale sprite dataKonstantin Käfer2016-01-154-0/+36
| | | | This is a naïve implementation that essentially merges updated data into existing data. It will *not* remove icons from the stale sprite if they aren't present in the fresh sprite (we aren't tracking the source of a sprite, and the user could have changed it as well). Similarly, it will not update icons that have changed in dimension. This is a rare edge case and probably not worth implementing.
* [test] ensure static rendering finishes when a tile can't be loadedKonstantin Käfer2016-01-152-0/+39
|
* [core] use stale and refreshing TileJSON/GeoJSON dataKonstantin Käfer2016-01-152-0/+25
| | | | We're now supporting using stale TileJSON and GeoJSON data. When we receive a new answer with an updated TileJSON file, we're replacing the Source's metadata with the new one and trigger updates to make sure we're loading the correct tiles. Similarly, GeoJSON data will be reparsed.
* [core] use stale stylesKonstantin Käfer2016-01-154-0/+39
| | | | This adds support for using cached styles that are stale. They're treated like changing styles; when the refreshed style changed compared to the one we've already had, we're swapping out the entire style, which might cause a slight flicker.
* [core] Eliminate platform::assetRoot()John Firebaugh2016-01-1310-2/+2
| | | | I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
* [core] Simplify asset:// implementationJohn Firebaugh2016-01-133-13/+2
| | | | | | | | * Move asset:// URL handling to DefaultFileSource. * AssetFileSource implements FileSource interface and follows familiar implementation patterns. * Move default implementation to platform/default, zip implementation to platform/android. * Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter. * Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit.
* [core] move SourceInfo parsing to StyleParserKonstantin Käfer2016-01-131-1/+1
|
* [tests] Fix how we launch the test serverThiago Marcos P. Santos2016-01-111-2/+2
| | | | `execl` uses varargs thus must be NULL terminated.
* [core] Get rid of ::unref() for Timer and AsyncTaskThiago Marcos P. Santos2016-01-091-1/+0
| | | | | Not need, legacy from libuv. The RunLoop keep the main loop running until is explicitly no longer needed.
* [test] allow aborting rendering after a timeoutKonstantin Käfer2016-01-082-4/+13
|
* [test] terminate test server when stdin closesKonstantin Käfer2016-01-052-32/+51
|
* [tests] Add unit tests for SQLiteCache size limitThiago Marcos P. Santos2015-12-282-0/+0
|
* [tests] Simplify MockFileSourceJohn Firebaugh2015-12-242-149/+51
|
* [tests] Rewrite {Sprite,Glyph}Store tests in the style of ResourceLoadingJohn Firebaugh2015-12-241-0/+67
|
* [tests] Rewrite resource loading testJohn Firebaugh2015-12-221-1/+1
| | | | Make it more readable and easier to debug.
* [core] Add more tests to on-demand source loadBruno de Oliveira Abinader2015-12-171-0/+12
|
* [core] Tests for style with unused sourcesBruno de Oliveira Abinader2015-12-171-0/+36
|
* [core] Load sources only if there is at least one visible layerBruno de Oliveira Abinader2015-12-171-0/+4
|
* [core] Fixed annotation icon replacementMinh Nguyễn2015-12-152-0/+0
| | | | Another pass at #3146, including a unit test.
* [core] parse GeoJSON source typeKonstantin Käfer2015-12-118-0/+61
|
* [core] Custom layersJohn Firebaugh2015-12-093-0/+25
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-032-3/+3
|
* [core] Fix std::move() misuse that disables copy elisionKonstantin Käfer2015-12-031-2/+2
|
* [tests] Fix/improve Asset utestsThiago Marcos P. Santos2015-12-012-0/+0
| | | | | | ASSET=zip make test-* was broken and now works. Also added a test stressing concurrent file access.
* [tests] Remove libuv dependency from the testsThiago Marcos P. Santos2015-12-011-9/+4
|
* [tests] Don't use icons from the style for annotationsJohn Firebaugh2015-11-308-2/+1
|
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-252-32/+4
| | | | | | | It's a premultiplied image. This implies that we were misusing encodePNG in most cases, as we were passing premultiplied pixels which were then interpreted as unmultiplied. I changed encodePNG to accept premultipled pixels, and unpremultiply in the implementations.
* [test] Add pixelmatch; use in annotation testsJohn Firebaugh2015-11-2512-0/+69
|
* [core] Add image testsJohn Firebaugh2015-11-256-0/+0
|
* [core] Force style-sourced annotations to be visibleJohn Firebaugh2015-11-191-0/+3
|
* Rewrite CustomSpriteImages testJohn Firebaugh2015-11-181-26/+0
| | | | Previous test was invalid; Map::setSprite is only for annotations.
* [core] Use std::unique_ptr for FileSource requestJohn Firebaugh2015-11-162-58/+66
|
* [core] Do not pass uv_loop_t aroundThiago Marcos P. Santos2015-11-162-3/+3
| | | | This should be abstracted by util::RunLoop