blob: 35215245ae45a31eb84a5eb57010796d1c7cad10 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: implementation_imports
import 'package:fidl/fidl.dart';
import 'package:fuchsia_modular/src/service_connection/agent_service_connection.dart';
import 'package:test/test.dart';
void main() {
group('connectToAgentService:=', () {
test('throws if serviceProxy is null', () {
expect(() => deprecatedConnectToAgentService('agentUrl', null),
throwsException);
});
});
}
class FakeAsyncProxy<T> extends AsyncProxy<T> {
String serviceName;
String interfaceName;
FakeAsyncProxy(this.serviceName, this.interfaceName)
: super(AsyncProxyController(
$serviceName: serviceName,
$interfaceName: interfaceName,
));
}