Commit Graph

1658 Commits

Author SHA1 Message Date
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
zmiao
f23599c41d [core] Remove unnecessary intermediate PolygonFeature 2020-03-05 20:53:16 +02:00
zmiao
c69d3b46b1 [core] Fix within case when point is on polygon boundary 2020-03-05 20:53:16 +02:00
Alexander Shalamov
9a0bc1b58b [core] Add snapshotter unit tests 2020-03-05 17:43:37 +02:00
Alexander Shalamov
81e116d41a [core] Use weak annotation manager
Map and renderer / orchestrator should be able to run on a separate threads,
however, legacy AnnotationManager is shared between Map and Renderer, therefore
is not a thread safe. Until AnnotationManager is deprecated and removed from a
code-base, use it only via weak pointers.
2020-03-05 17:43:37 +02:00
Mikhail Pozdnyakov
91437d8101 Add OfflineDownload.NoFreezingOnNotFoundError unit test 2020-02-28 12:52:26 +02:00
Juha Alanen
4b148dc202 [build][ios] Refactor iOS test runner CI job configs 2020-02-27 10:09:35 +02:00
Juha Alanen
18e9ed1c0b [build] Build files related to OpenGL renderer only when the flag is enabled 2020-02-27 10:09:35 +02:00
Mikhail Pozdnyakov
1374f94795 Add Pass.NoCopy unit test 2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
ba4f5efa09 [core] OnlineFileSource is never accessed directly 2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
aad13f6a3f [core] FileSourceManager::getFileSource() returns PassRefPtr 2020-02-26 22:31:59 +02:00
Alexander Shalamov
d49284776b [core] Update Map.UniversalStyleGetter test 2020-02-26 18:15:23 +02:00
Alexander Shalamov
fb5be4c80c [core] Add unit test for layer serialization 2020-02-26 18:15:23 +02:00
Juha Alanen
096570e737 [test] Verify pitch bounds 2020-02-26 11:21:04 +02:00
Mikhail Pozdnyakov
c85e7cbce0 Add OfflineDownload.NoFreezingOnCachedTilesAndNewStyle unit test 2020-02-25 23:15:47 +02:00
Mikhail Pozdnyakov
7c48611f9e [core] Consolidate file source keys in the generic FileSource header
Thus we do not need to include specific headers to use `{set|get}Property`
API with key constants.
2020-02-25 23:15:47 +02:00
Juha Alanen
ba315b4bbb [test] Add test for min and max pitch options 2020-02-25 16:54:44 +02:00
zmiao
b9425dd4ec [core] Remove unnecessary includes, fix comments
This reverts commit b5c386ad7708ca9fe14f219b0ffc94cf6ce8fc88.
2020-02-21 21:39:48 +02:00
zmiao
351f421080 [core] Update unti tests. Remove unnecessary debugging code 2020-02-21 21:39:48 +02:00
Juha Alanen
a5ec862a2a [test-runner] Share common code between test runners
Also remove some unnecessary files.
2020-02-18 16:10:23 +02:00
Alexander Shalamov
d0dfd40b0a [core] Add unit test for Style::Impl::onSpriteLoaded 2020-02-17 10:14:05 +02:00
Kevin Li
02274e7601 [core] Implement 'in' expression. (#16162)
* Implement in.cpp

* Fix review comments.

* Add expression_equality test for 'in'

* Fix review comments.

* [core] Update changelog.

* [core] Update mapbox-gl-js

* [core] Ignore render-tests/debug/padding

* [core] Update baseline.
2020-02-15 17:36:57 +08:00
Juha Alanen
6d815401b1 [test-runner] Share common code between iOS test runners 2020-02-14 12:01:52 +02:00
Juha Alanen
632c5f9d4c [test] Add iOS unit test runner 2020-02-14 12:01:52 +02:00
Juha Alanen
a4c4de2828 [test] Fix failing tests on iOS 2020-02-14 12:01:52 +02:00