-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fidl][cpp] Fix hlcpp conversion w/ unknown interactions
We were missing Natural/HLCPP conversion rules for transport errors so it wasn't possible to even build the hlcpp_conversion.h for FIDL libraries with two-way flexible methods. The type is the same between Natural and HLCPP bindings so the fix is just to have a no-op conversion. Change-Id: Ib4150db3bee55f98ba0f862e6072afed647ca767 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/934374 Fuchsia-Auto-Submit: Ian McKellar <[email protected]> Commit-Queue: Auto-Submit <[email protected]> API-Review: Adam Barth <[email protected]> Reviewed-by: Mitchell Kember <[email protected]>
- Loading branch information
Showing
6 changed files
with
120 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"pkg/fidl_cpp_hlcpp_conversion/include/lib/fidl/cpp/hlcpp_conversion.h": "a1a95b2ba032918a786ac281627b834f" | ||
"pkg/fidl_cpp_hlcpp_conversion/include/lib/fidl/cpp/hlcpp_conversion.h": "d1bff0d7426fea5c89da263382bf5354" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
src/lib/fidl/cpp/tests/hlcpp_conversion/fidl/protocols.test.fidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
// Copyright 2023 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. | ||
|
||
library test.protocols; | ||
|
||
closed protocol ClosedProtocol { | ||
strict StrictOneWay(struct { | ||
arg int32; | ||
}); | ||
|
||
strict StrictTwoWay(struct { | ||
arg int32; | ||
}) -> (struct { | ||
res int32; | ||
}); | ||
|
||
strict StrictTwoWayError(struct { | ||
arg int32; | ||
}) -> (struct { | ||
res int32; | ||
}) error int32; | ||
|
||
strict -> OnStrictEvent(struct { | ||
arg int32; | ||
}); | ||
}; | ||
|
||
ajar protocol AjarProtocol { | ||
strict StrictOneWay(struct { | ||
arg int32; | ||
}); | ||
|
||
strict StrictTwoWay(struct { | ||
arg int32; | ||
}) -> (struct { | ||
res int32; | ||
}); | ||
|
||
strict StrictTwoWayError(struct { | ||
arg int32; | ||
}) -> (struct { | ||
res int32; | ||
}) error int32; | ||
|
||
strict -> OnStrictEvent(struct { | ||
arg int32; | ||
}); | ||
|
||
flexible FlexibleOneWay(struct { | ||
arg int32; | ||
}); | ||
|
||
flexible -> OnFlexibleEvent(struct { | ||
arg int32; | ||
}); | ||
}; | ||
|
||
|
||
open protocol OpenProtocol { | ||
strict StrictOneWay(struct { | ||
arg int32; | ||
}); | ||
|
||
strict StrictTwoWay(struct { | ||
arg int32; | ||
}) -> (struct { | ||
res int32; | ||
}); | ||
|
||
strict StrictTwoWayError(struct { | ||
arg int32; | ||
}) -> (struct { | ||
res int32; | ||
}) error int32; | ||
|
||
strict -> OnStrictEvent(struct { | ||
arg int32; | ||
}); | ||
|
||
flexible FlexibleOneWay(struct { | ||
arg int32; | ||
}); | ||
|
||
flexible -> OnFlexibleEvent(struct { | ||
arg int32; | ||
}); | ||
|
||
flexible FlexibleTwoWay(struct { | ||
arg int32; | ||
}) -> (struct { | ||
res int32; | ||
}); | ||
|
||
flexible FlexibleTwoWayError(struct { | ||
arg int32; | ||
}) -> (struct { | ||
res int32; | ||
}) error int32; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters