File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Tests/Unit-Tests/NewRelicAgentTests/Harvester-Tests/Harvestable-Data-Tests Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ extern "C" {
32
32
NRMAPlatform_ReactNative,
33
33
NRMAPlatform_Flutter,
34
34
NRMAPlatform_Capacitor,
35
- NRMAPlatform_MAUI
35
+ NRMAPlatform_MAUI,
36
+ NRMAPlatform_Unreal
36
37
};
37
38
38
39
// these constants are paired with enum values of NRMAApplicationPlatform
@@ -49,6 +50,7 @@ extern "C" {
49
50
#define kNRMAPlatformString_Flutter @" Flutter"
50
51
#define kNRMAPlatformString_Capacitor @" Capacitor"
51
52
#define kNRMAPlatformString_MAUI @" MAUI"
53
+ #define kNRMAPlatformString_Unreal @" Unreal"
52
54
53
55
54
56
// Custom Trace Types
Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ + (NSString*) stringFromNRMAApplicationPlatform:(NRMAApplicationPlatform)applica
171
171
return kNRMAPlatformString_Capacitor ;
172
172
case NRMAPlatform_MAUI:
173
173
return kNRMAPlatformString_MAUI ;
174
+ case NRMAPlatform_Unreal:
175
+ return kNRMAPlatformString_Unreal ;
174
176
}
175
177
}
176
178
Original file line number Diff line number Diff line change @@ -109,6 +109,12 @@ - (void) testCorrectness
109
109
NRMAApplicationPlatform capacitor = NRMAPlatform_Capacitor;
110
110
NSString * capacitorPlatformString = [NewRelicInternalUtils stringFromNRMAApplicationPlatform: capacitor];
111
111
XCTAssertTrue ([capacitorPlatformString isEqualToString: expectedCapacitorString]);
112
+
113
+ NSString * expectedUnrealString = @" Unreal" ;
114
+
115
+ NRMAApplicationPlatform Unreal = NRMAPlatform_Unreal;
116
+ NSString * UnrealPlatformString = [NewRelicInternalUtils stringFromNRMAApplicationPlatform: Unreal];
117
+ XCTAssertTrue ([UnrealPlatformString isEqualToString: expectedUnrealString]);
112
118
}
113
119
114
120
You can’t perform that action at this time.
0 commit comments