You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
636 B
25 lines
636 B
// 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.
|
|
|
|
#![cfg(feature = "trunks")]
|
|
|
|
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);
|
|
}
|