summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [core] Interface and implementation for offlineJohn Firebaugh2016-02-108-0/+489
|
* [all] Don't interpret 404s on non-tile resources as "no content"John Firebaugh2016-02-104-7/+119
|
* [all] Do not set Response data for 404sJohn Firebaugh2016-02-102-6/+3
| | | | For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent.
* [core] Reimplement existing caching within an offline-capable database schemaJohn Firebaugh2016-02-1026-1074/+486
|
* [core] Cache with mapbox:// tile URLsJohn Firebaugh2016-02-104-100/+68
|
* [core] Moving caching logic to DefaultFileSourceJohn Firebaugh2016-02-1017-63/+52
| | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
* [core] Add a method for statically evaluating font stacks used by a styleJohn Firebaugh2016-02-102-0/+48
|
* [core] Refactor tileCoverJohn Firebaugh2016-02-102-0/+119
|
* [core] compute the actual clipping masks that we have to draw with getStencils()Konstantin Käfer2016-02-101-20/+180
|
* [tests] Add test for AssetFileSource URL encodingJohn Firebaugh2016-02-081-0/+21
|
* [core] Remove Response::Error::Reason::CanceledJohn Firebaugh2016-02-041-1/+0
| | | | There is no such thing as a cancelled response, only cancelled requests. A request that is cancelled does not have its callback called with a Response.
* [tests] Don't call the callback for cancelled responsesJohn Firebaugh2016-02-045-15/+17
| | | | | | StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback". Fixes #3784
* [all] Make #include <mapbox/variant.hpp> universally accessibleJohn Firebaugh2016-02-041-1/+0
|
* [core] Make bool conversions explicitJohn Firebaugh2016-02-031-2/+1
| | | | Implicit bool conversions are bad; they'll be used e.g. for a == b and a != b if those operators are not defined. This was happening at https://github.com/mapbox/mapbox-gl-native/blob/032c8fba3c8e3c122dd399b5c9341d92ad9d286f/src/mbgl/map/transform.cpp#L132-L132, for example.
* [core] Improve LatLngBounds APIJohn Firebaugh2016-02-022-25/+101
| | | | | | | * Use "named constructors": empty, world, hull * Make the two-argument constructor lenient (i.e., it is a hull operation) * Add various accessors * Enforce a single empty representation
* [tests] Reorganize tests to match src structureJohn Firebaugh2016-02-0224-23/+24
|
* [core] Normalize only raster source tile URLsJohn Firebaugh2016-02-013-0/+44
|
* [tests] Refactor and make MockFileSource more generalJohn Firebaugh2016-02-0112-550/+592
| | | | | | 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.
* [core] Rationalize Resource initializationJohn Firebaugh2016-01-292-0/+51
|
* [core] Move rapidjson document creation into StyleParserJohn Firebaugh2016-01-281-6/+1
|
* Cleanup std::chrono usageBruno de Oliveira Abinader2016-01-256-26/+25
| | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
* [core] Include prior values of caching headers in ResourceJohn Firebaugh2016-01-221-4/+2
| | | | This allows the FileSource interface itself to support revalidation. We could (and probably should) now rewrite HTTPContextBase implementations as FileSource implementations.
* [core] Polyfill std::chrono::absJohn Firebaugh2016-01-221-3/+1
|
* [core] Merge rfc1123, iso8601, and parse_date into chrono.hpp and fix their APIJohn Firebaugh2016-01-221-1/+0
|
* [ios] Converted iOS SDK into dynamic frameworkMinh Nguyễn2016-01-225-72/+46
| | | | | | | | | | make iproj now produces a target that pulls together static libraries like core and platform-ios into a real dynamic framework. iosapp is pretty much just a regular iOS application that links Mapbox.framework (except for the inclusion of default_styles.hpp). iosapp runs fine in the Simulator and on a device, and the same is true for any application linking against Mapbox.framework. The ipackage target produces both a Bitcode-disabled static framework and a Bitcode-enabled dynamic framework, eliminating the need for a separate framework.sh. It disables code signing, since that happens on copy when the framework is embedded inside the application bundle. It also merges the device and simulator builds into a single fat framework. Also bumped itest minimum deployment target to iOS 8.0, the first version that supports linking frameworks. Fixes #828.
* [ios] Removed testDelegateRegionDidChangeMinh Nguyễn2016-01-211-54/+0
| | | | | Also failing randomly on Bitrise. /ref #3555
* [core] Use better types for modified / expires / etagJohn Firebaugh2016-01-2114-81/+81
|
* [core] Eliminate Response::stale and inline Response::isExpired()John Firebaugh2016-01-2112-116/+64
| | | | Response::isExpired() had subtle and potentially confusing behavior around Seconds::zero(). It's best to inline it and comment why.
* [tests] Added utests for RunLoop refcountingThiago Marcos P. Santos2016-01-202-0/+76
|
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-203-0/+15
| | | | | | | 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-197-90/+95
| | | | | | | | | | | | 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)
* [core][ios][osx][android] fix icons with non-integer width/heightAnsis Brammanis2016-01-193-16/+16
| | | | | | | | | | | ref #3031 ref #2198 For example, an icon that has: - a pixel width of 10 - a pixel ratio of 3 - a scaled with of 3.333 is now supported.
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-2/+2
|
* Revert WebP support due to broken buildsJohn Firebaugh2016-01-193-15/+0
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Replace PNG with WebP on tile source URLBruno de Oliveira Abinader2016-01-191-0/+7
| | | | | This is a hack, in the same fashion as adding {ratio} to the tile URLs. We should update the raster tile sources to use WebP by default.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-192-0/+8
| | | | | | | - 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] Added padding option to CameraOptionsMinh Nguyễn2016-01-181-2/+34
| | | | | | Moved EdgeInsets to geo.hpp so CameraOptions and Transform can refer to it. Added a padding option to CameraOptions that alters the frame of reference for the center option. Added optional padding parameters to LatLng getters and setters. Working towards #2600.
* [core] use stale glyphsKonstantin Käfer2016-01-155-6/+70
| | | | 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-155-0/+64
| | | | 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-154-0/+103
|
* [core] use stale and refreshing TileJSON/GeoJSON dataKonstantin Käfer2016-01-153-0/+48
| | | | 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-157-0/+94
| | | | 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] Support multiple paths in SQLiteCache::getShared()Konstantin Käfer2016-01-152-0/+35
| | | | If you use many different caches, expired weak_ptrs will pile up in the unordered_map, but that is an edge case, and you probably shouldn't do that anyway.
* [core] Restore existing response bodyJohn Firebaugh2016-01-141-0/+4
| | | | Until #2721 lands we still need this.
* [ios] remove `testCompassTap` testJason Wray2016-01-141-26/+0
| | | | | Fails on CI because KIF is unstable. Refs 61615a44fd49336905e7b18c8ac665ce1eb7d4a4, #2769, #2734
* [core] Let SQLiteCache decide when store or refresh responsesJohn Firebaugh2016-01-142-5/+6
|
* [core] Add an explicit "not modified" indicator to ResponseJohn Firebaugh2016-01-141-6/+2
|
* [core] std::shared_ptr<const Response> ⇢ const Response&John Firebaugh2016-01-143-32/+27
|
* [core] Eliminate FileCache interfaceJohn Firebaugh2016-01-141-3/+3
| | | | There is only one implementation and we're unlikely to add more.
* [core] Consolidated zoom and angle anchor logicMinh Nguyễn2016-01-141-0/+25
| | | | Made anchor a CameraOption for easeTo().