summary refs log tree commit diff
path: root/msg_socket/tests/unit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'msg_socket/tests/unit.rs')
-rw-r--r--msg_socket/tests/unit.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/msg_socket/tests/unit.rs b/msg_socket/tests/unit.rs
new file mode 100644
index 0000000..9855752
--- /dev/null
+++ b/msg_socket/tests/unit.rs
@@ -0,0 +1,12 @@
+// Copyright 2018 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+use msg_socket::*;
+
+#[test]
+fn sock_send_recv_unit() {
+    let (req, res) = pair::<(), ()>().unwrap();
+    req.send(&()).unwrap();
+    let _ = res.recv().unwrap();
+}