// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.import'package:flutter_driver/flutter_driver.dart';import'package:macrobenchmarks/common.dart';import'util.dart';voidmain(){macroPerfTest('picture_cache_perf',kPictureCacheRouteName,pageDelay:constDuration(seconds:1),driverOps:(FlutterDriverdriver)async{finalSerializableFindernestedScroll=find.byValueKey('nested-scroll');Future<void>_scrollOnce(doubleoffset)async{awaitdriver.scroll(nestedScroll,offset,0.0,constDuration(milliseconds:300));awaitFuture<void>.delayed(constDuration(milliseconds:500));}for(inti=0;i<3;i+=1){await_scrollOnce(-300.0);await_scrollOnce(-300.0);await_scrollOnce(300.0);await_scrollOnce(300.0);}},);}