Index: base/BUILD.gn |
diff --git a/base/BUILD.gn b/base/BUILD.gn |
index 9d1c838e980c29d2af0380682195448c6351b9a9..6a8a4378bb068a026b9ceebf3b117e8e16f3f107 100644 |
--- a/base/BUILD.gn |
+++ b/base/BUILD.gn |
@@ -1540,6 +1540,17 @@ if (is_win) { |
} |
} |
+if (is_ios) { |
+ bundle_data("base_unittests_bundle_data") { |
+ sources = [ |
+ "test/data", |
+ ] |
+ outputs = [ |
+ "{{bundle_resources_dir}}/{{source_root_relative_dir}}/{{source_file_part}}", |
+ ] |
+ } |
+} |
+ |
test("base_unittests") { |
sources = [ |
"allocator/tcmalloc_unittest.cc", |
@@ -1799,6 +1810,10 @@ test("base_unittests") { |
"//third_party/icu", |
] |
+ if (is_ios) { |
+ deps += [ ":base_unittests_bundle_data" ] |
+ } |
+ |
# Some unittests depend on the ALLOCATOR_SHIM macro. |
configs += [ "//base/allocator:allocator_shim_define" ] |