Add server interop tests

This commit is contained in:
Lucio Franco
2019-09-06 21:40:59 -04:00
parent 0c682536b8
commit f74bba6858
5 changed files with 86 additions and 10 deletions
+9
View File
@@ -1,3 +1,5 @@
#![recursion_limit = "256"]
pub mod client;
pub mod server;
@@ -16,6 +18,13 @@ pub fn client_payload(size: usize) -> pb::Payload {
}
}
pub fn server_payload(size: usize) -> pb::Payload {
pb::Payload {
r#type: default::Default::default(),
body: iter::repeat(0u8).take(size).collect(),
}
}
impl pb::ResponseParameters {
fn with_size(size: i32) -> Self {
pb::ResponseParameters {