|
96 | 96 | public: |
97 | 97 | MOCK_METHOD(std::vector<uint8_t>, SerializeMessage, (const EnrichedClose &msg)); |
98 | 98 |
|
99 | | - MOCK_METHOD(std::vector<uint8_t>, SerializeAllowlist, (const Message &, const std::string_view)); |
| 99 | + MOCK_METHOD(std::vector<uint8_t>, SerializeAllowlist, |
| 100 | + (const Message &, const std::string_view, const std::string_view)); |
100 | 101 |
|
101 | 102 | MOCK_METHOD(std::vector<uint8_t>, SerializeBundleHashingEvent, (SNTStoredExecutionEvent *)); |
102 | 103 | MOCK_METHOD(std::vector<uint8_t>, SerializeDiskAppeared, (NSDictionary *, bool)); |
@@ -287,13 +288,14 @@ - (void)testLogAllowList { |
287 | 288 | auto mockWriter = std::make_shared<MockWriter>(); |
288 | 289 | es_message_t msg; |
289 | 290 | std::string_view hash = "this_is_my_test_hash"; |
| 291 | + std::string_view target_path = "this_is_my_target_path"; |
290 | 292 |
|
291 | 293 | mockESApi->SetExpectationsRetainReleaseMessage(); |
292 | | - EXPECT_CALL(*mockSerializer, SerializeAllowlist(testing::_, hash)); |
| 294 | + EXPECT_CALL(*mockSerializer, SerializeAllowlist(testing::_, hash, target_path)); |
293 | 295 | EXPECT_CALL(*mockWriter, Write); |
294 | 296 |
|
295 | 297 | Logger(nil, nil, TelemetryEvent::kEverything, 1, 1, 1, mockSerializer, mockWriter) |
296 | | - .LogAllowlist(Message(mockESApi, &msg), hash); |
| 298 | + .LogAllowlist(Message(mockESApi, &msg), hash, target_path); |
297 | 299 |
|
298 | 300 | XCTBubbleMockVerifyAndClearExpectations(mockESApi.get()); |
299 | 301 | XCTBubbleMockVerifyAndClearExpectations(mockSerializer.get()); |
|
0 commit comments