File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 55// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66//
77// ===----------------------------------------------------------------------===//
8+ #include " lldb/Core/Telemetry.h"
9+ #include " TestingSupport/SubsystemRAII.h"
810#include " lldb/Core/PluginInterface.h"
911#include " lldb/Core/PluginManager.h"
10- #include " lldb/Core/Telemetry.h"
1112#include " llvm/ADT/StringRef.h"
1213#include " llvm/Support/Error.h"
1314#include " llvm/Telemetry/Telemetry.h"
@@ -77,8 +78,13 @@ class FakePlugin : public telemetry::TelemetryManager {
7778
7879using namespace lldb_private ::telemetry;
7980
81+ class TelemetryTest : public testing ::Test {
82+ public:
83+ lldb_private::SubsystemRAII<lldb_private::FakePlugin> subsystems;
84+ };
85+
8086#if LLVM_ENABLE_TELEMETRY
81- #define TELEMETRY_TEST (suite, test ) TEST (suite, test)
87+ #define TELEMETRY_TEST (suite, test ) TEST_F (suite, test)
8288#else
8389#define TELEMETRY_TEST (suite, test ) TEST(DISABLED_##suite, test)
8490#endif
You can’t perform that action at this time.
0 commit comments