File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Tests/Unit-Tests/NewRelicAgentTests/Uncategorized Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 12
12
#include < string.h>
13
13
#include < errno.h>
14
14
#include < sys/stat.h>
15
+ #import " NRMAInteractionHistory.h"
15
16
16
17
@interface NRMAExceptionMetaDataTest : XCTestCase
17
18
@@ -31,6 +32,7 @@ - (void)tearDown
31
32
[super tearDown ];
32
33
}
33
34
35
+ // test
34
36
- (void )test_NRMA_writeNRMeta
35
37
{
36
38
@@ -68,7 +70,17 @@ - (void)test_NRMA_writeNRMeta
68
70
NRMA_setDiskFree (123456 );
69
71
NRMA_setAccountId (2 );
70
72
NRMA_setAgentId (1 );
71
-
73
+
74
+
75
+ // Add interactions.
76
+
77
+ long long interactionTime = 1000 ;
78
+ NSString * interactionName = @" TestTrace" ;
79
+ NRMA__AddInteraction (interactionName.UTF8String , interactionTime);
80
+ long long interactionTime2 = 2000 ;
81
+ NSString * interactionName2 = @" TestTrace2" ;
82
+ NRMA__AddInteraction (interactionName2.UTF8String , interactionTime2);
83
+
72
84
NRMA_writeNRMeta (NULL , NULL , NULL );
73
85
74
86
You can’t perform that action at this time.
0 commit comments