anchor.diff:      });
   
       testWithoutContext('Multiple ports available, without appId', () async {
  -      final MDnsClient client = getMockClient(
  +      final MDnsClient client = FakeMDnsClient(
           <PtrResourceRecord>[
             PtrResourceRecord('foo', year3000, domainName: 'bar'),
             PtrResourceRecord('baz', year3000, domainName: 'fiz'),
  
positive.code:       );
        final Uri uri = await portDiscovery.getObservatoryUri(
          '',
          MockIOSDevice(),
        );
        expect(uri, isNull);
        expect(logger.errorText, contains('Personal Hotspot'));
      });
  
      testWithoutContext('One port available, no appId', () async {
        final MDnsClient client = getMockClient(
          <PtrResourceRecord>[
            PtrResourceRecord('foo', year3000, domainName: 'bar'),
          ],
  
negative.code: 
  import 'package:flutter_tools/src/base/io.dart';
  import 'package:flutter_tools/src/base/logger.dart';
  import 'package:flutter_tools/src/build_info.dart';
  import 'package:flutter_tools/src/device.dart';
  import 'package:flutter_tools/src/ios/devices.dart';
  import 'package:flutter_tools/src/mdns_discovery.dart';
  import 'package:flutter_tools/src/project.dart';
  import 'package:flutter_tools/src/reporting/reporting.dart';
  import 'package:multicast_dns/multicast_dns.dart';
  import 'package:test/fake.dart';
  
  import '../src/common.dart';
  
  void main() {
    group('mDNS Discovery', () {
  