mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-10-26 13:45:33 +00:00
23 lines
607 B
Rust
23 lines
607 B
Rust
|
// Copyright 2019 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.
|
||
|
|
||
|
mod common;
|
||
|
|
||
|
use crate::common::test_round_trip;
|
||
|
use protos::trunks::{SendCommandRequest, SendCommandResponse};
|
||
|
|
||
|
#[test]
|
||
|
fn send_command_request() {
|
||
|
let mut request = SendCommandRequest::new();
|
||
|
request.set_command(b"...".to_vec());
|
||
|
test_round_trip(request);
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn send_command_response() {
|
||
|
let mut response = SendCommandResponse::new();
|
||
|
response.set_response(b"...".to_vec());
|
||
|
test_round_trip(response);
|
||
|
}
|