Ensure GetFixturesPath works on Fuchsia (flutter/engine#15978)

This commit is contained in:
George Wright
2020-01-24 15:47:29 -08:00
committed by GitHub
parent 076cf25e37
commit 274356d3ab

View File

@@ -230,7 +230,11 @@ template("test_fixtures") {
# must always be known to tests.
fixtures_location_target_name = "fixtures_location_$target_name"
fixtures_location(fixtures_location_target_name) {
assets_dir = "$target_gen_dir/assets"
if (is_fuchsia) {
assets_dir = "/pkg/data/assets"
} else {
assets_dir = "$target_gen_dir/assets"
}
}
test_deps = [ ":$fixtures_location_target_name" ]