Mikko Pulkki
3a2db7cbf5
Add unit tests for the free camera
2020-05-02 17:07:02 +03:00
zmiao
23b6268a04
[core] Distance expression: Refine logic
2020-04-30 02:31:15 +03:00
zmiao
70fbc97e58
[test] Distance expression: Update unit tests
2020-04-30 02:31:15 +03:00
zmiao
4a54da881f
[core] Distance expression: Remove code and comments related to unit argument
2020-04-28 23:10:04 +03:00
zmiao
9bbb1b721e
[core] Distance expression: remove unit argument ( #16434 )
2020-04-24 15:12:45 -07:00
Alexander Shalamov
0ccc9f2689
Add test for PingFang TC Semibold
2020-04-24 13:46:40 -07:00
Minh Nguyễn
61a91d7fe8
[ios, macos] Increased tolerance for local glyph rasterization test
...
Co-authored-by: Alexander Shalamov <alexander.shalamov@mapbox.com >
2020-04-24 13:46:40 -07:00
Minh Nguyễn
0588c50b09
[ios, macos] Get glyph metrics from font
...
Get glyph metrics from the font in the process of drawing each glyph into a bitmap context. These metrics result in more accurate kerning and better aligned baselines than the previous hard-coded values.
Align iOS/macOS local glyph rasterization test fixture to Qt.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
52d4c5e222
[ios, macos] Corrected PingFang test fixture
...
PingFangTC-Regular is better than PingFangTC-Thin. There is no font by the name “PingFang”.
2020-04-24 13:46:40 -07:00
Sudarsana Babu Nagineni
3542db4fd4
[build] Remove incorrect include path in tests CMake
2020-04-24 19:19:38 +03:00
Mikhail Pozdnyakov
64c5b46d9e
follow-up fixes after 16416
2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
d8639e2f9c
[core] Database file source does not return stored tiles for volatile resources
...
The `DatabaseFileSource.VolatileResource` test is included.
2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
b120cdd207
Add Map.VolatileSource unit test
2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
11efffb351
[core] Add TileUpdateParameters and use it
2020-04-22 19:21:56 +03:00
Mikhail Pozdnyakov
3bebd13d2e
[core] Add Resource::StoragePolicy and consider it in resource loader
2020-04-22 19:21:56 +03:00
zmiao
b4b27627d6
[core] Distance expression: Change template class into template function in geometry_util, add range assertion for distance contaniner IndexRange
...
Change distance units to small letters, update tests accordingly
2020-04-22 15:53:08 +03:00
zmiao
8dac8f1150
[core] Distance expression: add unit tests for distance expression
2020-04-22 15:53:08 +03:00
Mikhail Pozdnyakov
6857355932
Add Map.SourceMinimumUpdateIntervalOverride unit test
2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
f41992819d
Add Source.SourceMinimumUpdateInterval unit test
2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
183a634b62
[core] TilePyramid::update accepts source impl
2020-04-20 21:54:31 +03:00
Mikhail Pozdnyakov
ce11fc6cfe
Add OnlineFileSource.RespectMinimumUpdateInterval unit test
2020-04-20 21:54:31 +03:00
Bruno de Oliveira Abinader
f856396131
[core] Fix -Werror={pessimizing,redundant}-move from GCC 9
2020-04-20 14:37:24 +03:00
Thiago Marcos P. Santos
b49517b737
[core] Fix performance-unnecessary-value-param errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Thiago Marcos P. Santos
7751e4be76
[core] Fix google-default-arguments errors in header files
...
As reported by clang-tidy-8.
2020-04-17 13:36:50 +03:00
Alexander Shalamov
ffea0af9bf
Add generic setter for 'source' property
...
- Add setter for 'source' property
- Test generic setters via setProperty method
2020-04-16 13:52:54 -04:00
Alexander Shalamov
51000f6d6d
Use single threaded fixture log
2020-04-15 10:42:11 -04:00
Andrew Hay Kurtz
0c95acf103
Enable 'circle-sort-key' layout property
2020-04-14 22:30:40 +03:00
Łukasz Paczos
08ad742164
[core] add regression test for #16391
2020-04-14 17:32:00 +02:00
Mikhail Pozdnyakov
e6c156420d
[core] PlacedSymbolData contains layer id
2020-04-09 17:18:21 +03:00
Gali Nelle
cd91664935
Add unit tests for Rotation interpolator
2020-04-08 14:00:26 +03:00
Thiago Marcos P. Santos
42dc1e997f
[test] Rename deprecated gtest method
...
The old name was marked as deprecated and failing to build with clang.
2020-04-08 02:07:38 +03:00
zmiao
bf4c7340f3
[build] Fix undefined behavour sanitizer ( #16375 )
...
* [build] Fix integer overflow runtime error for core part
Temporarily remove circle ci UBSAN build precondition
* [build] Enable all of the ubsans
[build] Check runtime error
[build] Update UBSAN_OPTION
* [build] Add UBSAN blacklist
[build] Ignore system libraries
[build] Ignore vendor library
* [build] Fix implicit conversion runtime error in core
* [build] Fix division by zero runtime error
* [build] Add unfixed error to ubsan blacklist
* [build] Make UBSAN halt on error
Revert "Temporary remove build precondition"
* [build] Fix division by zero error
* [build] Make UBSAN officially work without FIXME prefix
* [build] Fix implicit conversion from int64_t to uint64_t
* [build] Rename style test json file name
* Address review findings
2020-04-07 16:30:30 +03:00
Mikko Pulkki
d0c103fa8f
Refactor tileCover to support lod tiles
2020-04-06 12:10:21 +03:00
Mikhail Pozdnyakov
57cd47b2fc
Add Map.PlacedSymbolData unit test
2020-04-02 11:50:52 +03:00
Alexander Shalamov
f3e9c4733a
[core] Add unit tests
2020-04-01 16:18:55 -04:00
Juha Alanen
4daa6baa20
[test] Disable logging thread
...
some tests are counting the number of logs to determine pass/fail
so disable separate logging thread for them.
2020-04-01 11:17:43 +03:00
Juha Alanen
bc80e5bacf
[build] Add steps to build curl for Android
...
Add steps to build curl with openssl for Android.
Prebuilt libraries will be used by default.
2020-03-27 11:27:24 +02:00
zmiao
e9b99a5233
Address review finding
...
Remove unncessary condition check
2020-03-26 14:13:59 +02:00
zmiao
25ad9d184d
Add unit tests
2020-03-26 14:13:59 +02:00
Mikhail Pozdnyakov
371af12e1f
StyleConversion.SetGenericProperties test
2020-03-24 20:53:55 +02:00
Thiago Marcos P. Santos
1adc436c9d
[test] Include cpp-httplib as a system library
...
This way it will not get warnings by linters and -Werror.
2020-03-23 23:04:51 +02:00
Mikhail Pozdnyakov
8bf841a951
[core] Render::clearData clears fonts
2020-03-20 11:43:59 +02:00
Mikhail Pozdnyakov
2ae96ad687
[core] Introduce Renderer::clearData() instead of keepRenderData map options
...
`Renderer::clearData()` is a better API than the removed `MapOptions::keepRenderData()`:
- gives more flexibility to the client
- similar to the existing `Renderer::reduceMemoryUse()`
- the `MapOptions::keepRenderData()` API implementation could not handle the raise condition, which
happened if the new still image request had come before all tiles from the previous requests were loaded.
Co-authored-by: Dane Springmeyer <dane@mapbox.com >
2020-03-20 11:43:59 +02:00
galinelle
bc45d65c58
Add additional transformState::latLngToScreenCoordinate getter ( #16311 )
...
This change adds a latLngToScreenCoordinate overload, to retrieve
the projected vec4 in additional to the ScreenCoordinate object,
that is useful to detect whether the projected latLng is in front
or behind the camera.
2020-03-19 18:53:09 +02:00
zmiao
c3a1caf612
update test
2020-03-19 14:40:49 +02:00
zmiao
6989ee6e03
[build] Use found code sign identities
2020-03-19 10:20:44 +02:00
Mikhail Pozdnyakov
11e6bd46c2
Add Map.KeepRenderData and Map.DontKeepRenderData tests
2020-03-18 20:14:15 +02:00
Juha Alanen
96e32717c0
[test] Run Annotations DebugSparse test only with OpenGL renderer
2020-03-12 15:24:37 +02:00
Thiago Marcos P. Santos
410e583db6
[core] Add a callback for platform RunLoop integration
...
Platform integration callback for platforms that do not have full
run loop integration or don't want to block at the Mapbox GL Native
loop. It will be called from any thread and is up to the platform
to, after receiving the callback, call RunLoop::runOnce() from the
same thread as the Map object lives.
2020-03-11 12:35:20 +02:00
Alexander Shalamov
30aaa76910
[core] Add unit tests for ambient cache size
2020-03-07 10:14:18 +02:00