Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: mojo/public/rust/tests/encoding.rs

Issue 2240003002: Rust: Polish off communication across Mojom interfaces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Upload newest version of code gen Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/rust/src/bindings/mojom.rs ('k') | mojo/public/rust/tests/integration.rs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/rust/tests/encoding.rs
diff --git a/mojo/public/rust/tests/encoding.rs b/mojo/public/rust/tests/encoding.rs
index 5246203728665f90ce8d3c3b6498b5bda4c42a91..88b13347674581a2455f0eeb6fd568be10b0855a 100644
--- a/mojo/public/rust/tests/encoding.rs
+++ b/mojo/public/rust/tests/encoding.rs
@@ -672,4 +672,34 @@ encoding_tests! {
}
}
}
+ integration_intf_rqst_mthd0_good {
+ MessageHeader => {
+ |header: MessageHeader| {
+ assert_eq!(header.version, 1);
+ assert_eq!(header.name, 0);
+ assert_eq!(header.flags, 1);
+ assert_eq!(header.request_id, 7);
+ }
+ },
+ IntegrationTestInterfaceMethod0Request => {
+ |payload: &IntegrationTestInterfaceMethod0Request| {
+ assert_eq!(payload.param0.a, -1);
+ }
+ }
+ }
+ integration_intf_resp_mthd0_good {
+ MessageHeader => {
+ |header: MessageHeader| {
+ assert_eq!(header.version, 1);
+ assert_eq!(header.name, 0);
+ assert_eq!(header.flags, 2);
+ assert_eq!(header.request_id, 1);
+ }
+ },
+ IntegrationTestInterfaceMethod0Response => {
+ |payload: &IntegrationTestInterfaceMethod0Response| {
+ assert_eq!(payload.param0, vec![0]);
+ }
+ }
+ }
}
« no previous file with comments | « mojo/public/rust/src/bindings/mojom.rs ('k') | mojo/public/rust/tests/integration.rs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698