@@ -216,10 +216,10 @@ void main() {
216216 });
217217 });
218218
219- group ('beforeScreenshotCapture ' , () {
219+ group ('beforeCaptureScreenshot ' , () {
220220 testWidgets ('does add screenshot if beforeCapture returns true' ,
221221 (tester) async {
222- fixture.options.beforeScreenshotCapture =
222+ fixture.options.beforeCaptureScreenshot =
223223 (SentryEvent event, Hint hint, bool shouldDebounce) {
224224 return true ;
225225 };
@@ -229,7 +229,7 @@ void main() {
229229
230230 testWidgets ('does add screenshot if async beforeCapture returns true' ,
231231 (tester) async {
232- fixture.options.beforeScreenshotCapture =
232+ fixture.options.beforeCaptureScreenshot =
233233 (SentryEvent event, Hint hint, bool shouldDebounce) async {
234234 await Future <void >.delayed (Duration (milliseconds: 1 ));
235235 return true ;
@@ -240,7 +240,7 @@ void main() {
240240
241241 testWidgets ('does not add screenshot if beforeCapture returns false' ,
242242 (tester) async {
243- fixture.options.beforeScreenshotCapture =
243+ fixture.options.beforeCaptureScreenshot =
244244 (SentryEvent event, Hint hint, bool shouldDebounce) {
245245 return false ;
246246 };
@@ -250,7 +250,7 @@ void main() {
250250
251251 testWidgets ('does not add screenshot if async beforeCapture returns false' ,
252252 (tester) async {
253- fixture.options.beforeScreenshotCapture =
253+ fixture.options.beforeCaptureScreenshot =
254254 (SentryEvent event, Hint hint, bool shouldDebounce) async {
255255 await Future <void >.delayed (Duration (milliseconds: 1 ));
256256 return false ;
@@ -261,7 +261,7 @@ void main() {
261261
262262 testWidgets ('does add screenshot if beforeCapture throws' , (tester) async {
263263 fixture.options.automatedTestMode = false ;
264- fixture.options.beforeScreenshotCapture =
264+ fixture.options.beforeCaptureScreenshot =
265265 (SentryEvent event, Hint hint, bool shouldDebounce) {
266266 throw Error ();
267267 };
@@ -272,7 +272,7 @@ void main() {
272272 testWidgets ('does add screenshot if async beforeCapture throws' ,
273273 (tester) async {
274274 fixture.options.automatedTestMode = false ;
275- fixture.options.beforeScreenshotCapture =
275+ fixture.options.beforeCaptureScreenshot =
276276 (SentryEvent event, Hint hint, bool shouldDebounce) async {
277277 await Future <void >.delayed (Duration (milliseconds: 1 ));
278278 throw Error ();
@@ -286,7 +286,7 @@ void main() {
286286 await tester.runAsync (() async {
287287 var shouldDebounceValues = < bool > [];
288288
289- fixture.options.beforeScreenshotCapture =
289+ fixture.options.beforeCaptureScreenshot =
290290 (SentryEvent event, Hint hint, bool shouldDebounce) {
291291 shouldDebounceValues.add (shouldDebounce);
292292 return true ;
@@ -323,7 +323,7 @@ void main() {
323323 SentryEvent ? beforeScreenshotEvent;
324324 Hint ? beforeScreenshotHint;
325325
326- fixture.options.beforeScreenshotCapture =
326+ fixture.options.beforeCaptureScreenshot =
327327 (SentryEvent event, Hint hint, bool shouldDebounce) {
328328 beforeScreenshotEvent = event;
329329 beforeScreenshotHint = hint;
0 commit comments