sdk/lib/fidl/cpp/collision_unittest.cc
// Confirms that a protocol can have a method that returns a protocol whose
// type name is the same as the method's. Prior to a change which added the
// "class" modifier to the generated proxy's method signature, the identifier
// was ambiguous and the generated header did not compile.
Confirms that a protocol can have a method that returns a protocol whose
type name is the same as the method's. Prior to a change which added the
"class" modifier to the generated proxy's method signature, the identifier
was ambiguous and the generated header did not compile.
Confirms that a protocol can have a method that returns a protocol whose type name is the same as the method ' s . Prior to a change which added the " class " modifier to the generated proxy ' s method signature the identifier was ambiguous and the generated header did not compile .
TEST(Collision, Compiles) {
  zx::channel ch;
  fidl::InterfaceHandle<class test::misc::NameCollision> collision;
  test::misc::ReturnsCollision_SyncProxy proxy(std::move(ch));
  proxy.NameCollision(&collision);
}
TEST ( Collision , Compiles ) { zx :: channel ch ; fidl :: InterfaceHandle < class test :: misc :: NameCollision > collision ; test :: misc :: ReturnsCollision_SyncProxy proxy ( std :: move ( ch ) ) ; proxy . NameCollision ( & collision ) ; }
Confirms that a protocol can have a method that returns a protocol whose
type name is the same as the method's.
Confirms that a protocol can have a method that returns a protocol whose type name is the same as the method ' s .