1 // Copyright 2019 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #![cfg(feature = "trunks")] 6 7 mod common; 8 9 use crate::common::test_round_trip; 10 use protos::trunks::{SendCommandRequest, SendCommandResponse}; 11 12 #[test] send_command_request()13fn send_command_request() { 14 let mut request = SendCommandRequest::new(); 15 request.set_command(b"...".to_vec()); 16 test_round_trip(request); 17 } 18 19 #[test] send_command_response()20fn send_command_response() { 21 let mut response = SendCommandResponse::new(); 22 response.set_response(b"...".to_vec()); 23 test_round_trip(response); 24 } 25