summary refs log tree commit diff
path: root/protos/tests/trunks.rs
blob: 574c11082d785e25614cfd2afa196dd07bb8760d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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);
}