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 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
+ #include " lldb/Core/Telemetry.h"
9
+ #include " TestingSupport/SubsystemRAII.h"
8
10
#include " lldb/Core/PluginInterface.h"
9
11
#include " lldb/Core/PluginManager.h"
10
- #include " lldb/Core/Telemetry.h"
11
12
#include " llvm/ADT/StringRef.h"
12
13
#include " llvm/Support/Error.h"
13
14
#include " llvm/Telemetry/Telemetry.h"
@@ -77,8 +78,13 @@ class FakePlugin : public telemetry::TelemetryManager {
77
78
78
79
using namespace lldb_private ::telemetry;
79
80
81
+ class TelemetryTest : public testing ::Test {
82
+ public:
83
+ lldb_private::SubsystemRAII<lldb_private::FakePlugin> subsystems;
84
+ };
85
+
80
86
#if LLVM_ENABLE_TELEMETRY
81
- #define TELEMETRY_TEST (suite, test ) TEST (suite, test)
87
+ #define TELEMETRY_TEST (suite, test ) TEST_F (suite, test)
82
88
#else
83
89
#define TELEMETRY_TEST (suite, test ) TEST(DISABLED_##suite, test)
84
90
#endif
You can’t perform that action at this time.
0 commit comments