[Lldb-commits] [lldb] [LLDB][NFC]Refactor common test setup into SetUp method (PR #131203)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 14 09:07:44 PDT 2025


================
@@ -81,6 +81,20 @@ using namespace lldb_private::telemetry;
 class TelemetryTest : public testing::Test {
 public:
   lldb_private::SubsystemRAII<lldb_private::FakePlugin> subsystems;
+  std::vector<std::unique_ptr<::llvm::telemetry::TelemetryInfo>>
+      received_entries;
+
+  void SetUp() override {
+    // This would have been called by the plugin reg in a "real" pluging
+    // For tests, we just call it directly.
+    lldb_private::FakePlugin::Initialize();
----------------
JDevlieghere wrote:

I don't think this is needed anymore with the `SubsystemRAII` above? 

https://github.com/llvm/llvm-project/pull/131203


More information about the lldb-commits mailing list