anchor.diff:          data.timelineEvents,
           matches,
         );
  -
  -      await env.tearDownEnvironment();
       });
     });
   }
  
positive.code:         data.frames.length,
          equals(1),
        );
        await env.tearDownEnvironment();
      });
  
      test('matchesForSearch', () async {
        await env.setupEnvironment();
  
        // Verify an empty list is returned for bad input.
        expect(performanceController.matchesForSearch(''), isEmpty);
  
  
negative.code: // found in the LICENSE file.
  
  @TestOn('vm')
  import 'dart:async';
  
  import 'package:devtools_app/src/config_specific/import_export/import_export.dart';
  import 'package:devtools_app/src/primitives/trace_event.dart';
  import 'package:devtools_app/src/primitives/utils.dart';
  import 'package:devtools_app/src/screens/performance/performance_controller.dart';
  import 'package:devtools_app/src/screens/performance/performance_model.dart';
  import 'package:devtools_app/src/service/service_manager.dart';
  import 'package:devtools_app/src/shared/globals.dart';
  import 'package:devtools_test/devtools_test.dart';
  import 'package:flutter_test/flutter_test.dart';
  import 'package:mockito/mockito.dart';
  import 'package:vm_service/vm_service.dart' as vm_service;
  
  import '../test_data/performance.dart';
  
  void main() async {
    initializeLiveTestWidgetsFlutterBindingWithAssets();
  
    late PerformanceController performanceController;
    final ServiceConnectionManager fakeServiceManager = FakeServiceManager(
      service: FakeServiceManager.createFakeService(
        timelineData: vm_service.Timeline.parse(testTimelineJson)!,
      ),
    );
  
    group('PerformanceController', () {
      setUpAll(() {
        when(fakeServiceManager.connectedApp!.isProfileBuild)
            .thenAnswer((realInvocation) => Future.value(false));
        final initializedCompleter = Completer<bool>();
        initializedCompleter.complete(true);
        when(fakeServiceManager.connectedApp!.initialized)
            .thenReturn(initializedCompleter);
        setGlobal(ServiceConnectionManager, fakeServiceManager);
      });
  
      setUp(() async {
        setGlobal(OfflineModeController, OfflineModeController());
        performanceController = PerformanceController()..data = PerformanceData();
        await performanceController.initialized;
        // This flag should never be turned on in production.
        expect(debugSimpleTrace, isFalse);
      });
  
      test(
        'processOfflineData',
        () async {
          offlineController.enterOfflineMode();
          final offlinePerformanceData =
              OfflinePerformanceData.parse(offlinePerformanceDataJson);
  