1/*
2 * Copyright (C) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16import { TransferPayload } from '../../../src/hdc/message/TransferPayload';
17
18describe('TransferPayload Test', () => {
19  let transferPayload = new TransferPayload();
20  it('TransferPayloadTest01', function () {
21    expect(transferPayload).not.toBeUndefined();
22  });
23
24  it('TransferPayloadTest02', function () {
25    expect(transferPayload.index).toBeUndefined();
26  });
27
28  it('TransferPayloadTest03', function () {
29    transferPayload.index = true;
30    expect(transferPayload.index).toBeTruthy();
31  });
32
33  it('TransferPayloadTest04', function () {
34    expect(transferPayload.compressType).toBeUndefined();
35  });
36
37  it('TransferPayloadTest05', function () {
38    transferPayload.compressType = true;
39    expect(transferPayload.compressType).toBeTruthy();
40  });
41
42  it('TransferPayloadTest06', function () {
43    expect(transferPayload.compressSize).toBeUndefined();
44  });
45
46  it('TransferPayloadTest07', function () {
47    transferPayload.compressSize = true;
48    expect(transferPayload.compressSize).toBeTruthy();
49  });
50
51  it('TransferPayloadTest08', function () {
52    expect(transferPayload.uncompressSize).toBeFalsy();
53  });
54
55  it('TransferPayloadTest09', function () {
56    transferPayload.uncompressSize = true;
57    expect(transferPayload.uncompressSize).toBeTruthy();
58  });
59
60  it('TransferPayloadTest10', function () {
61    expect(transferPayload.toString()).not.toBeUndefined();
62  });
63});
64