src/base/fuchsia/scoped_service_binding_unittest.cc
TEST_F(ScopedServiceBindingTest, SingleClientConnectNewName) {
  const char kInterfaceName[] = "fuchsia.TestInterface2";
  auto service_binding_new_name_ = std::make_unique<
      ScopedSingleClientServiceBinding<testfidl::TestInterface>>(
          outgoing_directory_.get(), &test_service_, kInterfaceName);

  testfidl::TestInterfacePtr stub;
  public_service_directory_->Connect(kInterfaceName,
                                     stub.NewRequest().TakeChannel());
  VerifyTestInterface(&stub, ZX_OK);
}
// Verifies that ScopedSingleClientServiceBinding allows a different name.
Verifies that ScopedSingleClientServiceBinding allows a different name.
Verifies that ScopedSingleClientServiceBinding allows a different name .
TEST_F(ScopedServiceBindingTest, SingleClientConnectNewName) {
  const char kInterfaceName[] = "fuchsia.TestInterface2";
  auto service_binding_new_name_ = std::make_unique<
      ScopedSingleClientServiceBinding<testfidl::TestInterface>>(
          outgoing_directory_.get(), &test_service_, kInterfaceName);
  testfidl::TestInterfacePtr stub;
  public_service_directory_->Connect(kInterfaceName,
                                     stub.NewRequest().TakeChannel());
  VerifyTestInterface(&stub, ZX_OK);
}
TEST_F ( ScopedServiceBindingTest , SingleClientConnectNewName ) { const char kInterfaceName [ ] = " " ; auto service_binding_new_name_ = std :: make_unique < ScopedSingleClientServiceBinding < testfidl :: TestInterface > > ( outgoing_directory_ . get ( ) , & test_service_ , kInterfaceName ) ; testfidl :: TestInterfacePtr stub ; public_service_directory_ -> Connect ( kInterfaceName , stub . NewRequest ( ) . TakeChannel ( ) ) ; VerifyTestInterface ( & stub , ZX_OK ) ; }
Verifies that ScopedSingleClientServiceBinding allows a different name.
Verifies that ScopedSingleClientServiceBinding allows a different name .