Index: tools/gn/target_unittest.cc |
diff --git a/tools/gn/target_unittest.cc b/tools/gn/target_unittest.cc |
index 8f6684f650cacb3d57e5a4a475a27b8a5b368590..876c2e3f693790e521466c92a5e45239fe497726 100644 |
--- a/tools/gn/target_unittest.cc |
+++ b/tools/gn/target_unittest.cc |
@@ -821,8 +821,16 @@ TEST(Target, PullRecursiveBundleData) { |
ASSERT_EQ(a.bundle_data().file_rules()[0].sources().size(), 2u); |
ASSERT_EQ(a.bundle_data().file_rules()[1].sources().size(), 3u); |
ASSERT_EQ(a.bundle_data().asset_catalog_sources().size(), 4u); |
+ ASSERT_EQ(a.bundle_data().bundle_deps().size(), 2u); |
// C gets its data from D. |
ASSERT_EQ(c.bundle_data().file_rules().size(), 1u); |
ASSERT_EQ(c.bundle_data().file_rules()[0].sources().size(), 1u); |
+ ASSERT_EQ(c.bundle_data().bundle_deps().size(), 1u); |
+ |
+ // E does not have any bundle_data information but gets a list of |
+ // bundle_deps to propagate them during target resolution. |
+ ASSERT_TRUE(e.bundle_data().file_rules().empty()); |
+ ASSERT_TRUE(e.bundle_data().asset_catalog_sources().empty()); |
+ ASSERT_EQ(e.bundle_data().bundle_deps().size(), 2u); |
} |