feat: add real WeatherV2 Android composite validation
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled

This commit is contained in:
OpenAI Codex
2026-09-05 01:24:18 +08:00
parent da71c8784e
commit 52600cd3be
26 changed files with 903 additions and 64 deletions

View File

@@ -12,6 +12,8 @@
#include <mbgl/style/layers/line_layer_impl.hpp>
#include <mbgl/style/layers/raster_layer.hpp>
#include <mbgl/style/layers/raster_layer_impl.hpp>
#include <mbgl/style/layers/raster_particle_layer_impl.hpp>
#include <mbgl/style/layers/weather_color_layer_impl.hpp>
#include <mbgl/style/source_impl.hpp>
#include <mbgl/style/sources/custom_geometry_source.hpp>
#include <mbgl/style/sources/geojson_source.hpp>
@@ -175,6 +177,12 @@ TEST(Source, RasterArrayRenderItem) {
EXPECT_FALSE(item->hasRenderPass(RenderPass::Translucent));
}
TEST(Source, RasterArraySharesCanonicalSnapshotsWithWeatherColorLayer) {
style::RasterArraySource source{"source", "fixture", "metadata", "field"};
EXPECT_TRUE(source.supportsLayerType(style::RasterParticleLayer::Impl::staticTypeInfo()));
EXPECT_TRUE(source.supportsLayerType(style::WeatherColorLayer::Impl::staticTypeInfo()));
}
TEST(Source, RasterArraySnapshotsUseProcessWideGenerations) {
SourceTest test;
const auto eastMetadata = fixtureBytes("uniform-east", "metadata.json");