@@ -265,12 +265,18 @@ void main() {
265265 await logger.networkLogInternal (largeRequestData);
266266
267267 // Verify that obfuscateLog was called with modified data
268- verify (mManager.obfuscateLog (argThat (
269- predicate <NetworkData >((processedData) =>
270- processedData.requestBody ==
271- '[REQUEST_BODY_REPLACED] - Size: 15000 exceeds limit' &&
272- processedData.responseBody == largeRequestData.responseBody),
273- ))).called (1 );
268+ verify (
269+ mManager.obfuscateLog (
270+ argThat (
271+ predicate <NetworkData >(
272+ (processedData) =>
273+ processedData.requestBody ==
274+ '[REQUEST_BODY_REPLACED] - Size: 15000 exceeds limit' &&
275+ processedData.responseBody == largeRequestData.responseBody,
276+ ),
277+ ),
278+ ),
279+ ).called (1 );
274280
275281 // Verify that networkLog was called
276282 verify (mInstabugHost.networkLog (any)).called (1 );
@@ -297,12 +303,18 @@ void main() {
297303 await logger.networkLogInternal (largeResponseData);
298304
299305 // Verify that obfuscateLog was called with modified data
300- verify (mManager.obfuscateLog (argThat (
301- predicate <NetworkData >((processedData) =>
302- processedData.requestBody == largeResponseData.requestBody &&
303- processedData.responseBody ==
304- '[RESPONSE_BODY_REPLACED] - Size: 15000 exceeds limit' ),
305- ))).called (1 );
306+ verify (
307+ mManager.obfuscateLog (
308+ argThat (
309+ predicate <NetworkData >(
310+ (processedData) =>
311+ processedData.requestBody == largeResponseData.requestBody &&
312+ processedData.responseBody ==
313+ '[RESPONSE_BODY_REPLACED] - Size: 15000 exceeds limit' ,
314+ ),
315+ ),
316+ ),
317+ ).called (1 );
306318
307319 // Verify that networkLog was called
308320 verify (mInstabugHost.networkLog (any)).called (1 );
@@ -329,13 +341,19 @@ void main() {
329341 await logger.networkLogInternal (largeBothData);
330342
331343 // Verify that obfuscateLog was called with modified data
332- verify (mManager.obfuscateLog (argThat (
333- predicate <NetworkData >((processedData) =>
334- processedData.requestBody ==
335- '[REQUEST_BODY_REPLACED] - Size: 15000 exceeds limit' &&
336- processedData.responseBody ==
337- '[RESPONSE_BODY_REPLACED] - Size: 15000 exceeds limit' ),
338- ))).called (1 );
344+ verify (
345+ mManager.obfuscateLog (
346+ argThat (
347+ predicate <NetworkData >(
348+ (processedData) =>
349+ processedData.requestBody ==
350+ '[REQUEST_BODY_REPLACED] - Size: 15000 exceeds limit' &&
351+ processedData.responseBody ==
352+ '[RESPONSE_BODY_REPLACED] - Size: 15000 exceeds limit' ,
353+ ),
354+ ),
355+ ),
356+ ).called (1 );
339357
340358 // Verify that networkLog was called
341359 verify (mInstabugHost.networkLog (any)).called (1 );
0 commit comments