Add integration tests for shared library data sources

Bug: 237053857
Change-Id: Icae1429f8693d4fd18e7b3b269fd5a4fefbf9c7f
diff --git a/Android.bp b/Android.bp
index 29c6574..2a238f2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1786,16 +1786,31 @@
     name: "perfetto_include_perfetto_public_abi_base",
 }
 
+// GN: //include/perfetto/public/abi:public
+filegroup {
+    name: "perfetto_include_perfetto_public_abi_public",
+}
+
 // GN: //include/perfetto/public:base
 filegroup {
     name: "perfetto_include_perfetto_public_base",
 }
 
+// GN: //include/perfetto/public/protos:protos
+filegroup {
+    name: "perfetto_include_perfetto_public_protos_protos",
+}
+
 // GN: //include/perfetto/public:protozero
 filegroup {
     name: "perfetto_include_perfetto_public_protozero",
 }
 
+// GN: //include/perfetto/public:public
+filegroup {
+    name: "perfetto_include_perfetto_public_public",
+}
+
 // GN: //include/perfetto/test:test_support
 filegroup {
     name: "perfetto_include_perfetto_test_test_support",
@@ -1849,8 +1864,11 @@
         ":perfetto_include_perfetto_ext_tracing_ipc_ipc",
         ":perfetto_include_perfetto_protozero_protozero",
         ":perfetto_include_perfetto_public_abi_base",
+        ":perfetto_include_perfetto_public_abi_public",
         ":perfetto_include_perfetto_public_base",
+        ":perfetto_include_perfetto_public_protos_protos",
         ":perfetto_include_perfetto_public_protozero",
+        ":perfetto_include_perfetto_public_public",
         ":perfetto_include_perfetto_test_test_support",
         ":perfetto_include_perfetto_trace_processor_basic_types",
         ":perfetto_include_perfetto_trace_processor_storage",
@@ -1992,6 +2010,9 @@
         ":perfetto_src_protozero_filtering_message_filter",
         ":perfetto_src_protozero_proto_ring_buffer",
         ":perfetto_src_protozero_protozero",
+        ":perfetto_src_shared_lib_shared_lib",
+        ":perfetto_src_shared_lib_test_integrationtests",
+        ":perfetto_src_shared_lib_test_utils",
         ":perfetto_src_trace_processor_containers_containers",
         ":perfetto_src_trace_processor_db_db",
         ":perfetto_src_trace_processor_dynamic_dynamic",
@@ -9125,6 +9146,35 @@
     ],
 }
 
+// GN: //src/shared_lib:shared_lib
+filegroup {
+    name: "perfetto_src_shared_lib_shared_lib",
+    srcs: [
+        "src/shared_lib/data_source.cc",
+        "src/shared_lib/heap_buffer.cc",
+        "src/shared_lib/pb_decoder.cc",
+        "src/shared_lib/producer.cc",
+        "src/shared_lib/stream_writer.cc",
+        "src/shared_lib/tracing_session.cc",
+    ],
+}
+
+// GN: //src/shared_lib/test:integrationtests
+filegroup {
+    name: "perfetto_src_shared_lib_test_integrationtests",
+    srcs: [
+        "src/shared_lib/test/api_integrationtest.cc",
+    ],
+}
+
+// GN: //src/shared_lib/test:utils
+filegroup {
+    name: "perfetto_src_shared_lib_test_utils",
+    srcs: [
+        "src/shared_lib/test/utils.cc",
+    ],
+}
+
 // GN: //src/trace_processor/containers:containers
 filegroup {
     name: "perfetto_src_trace_processor_containers_containers",