1 /* 2 * Copyright (c) 2022-2025 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 16 #include <gtest/gtest.h> 17 18 #include "avmeta_data.h" 19 #include "avsession_log.h" 20 #include "avsession_manager.h" 21 #include "av_session.h" 22 #include "avsession_errors.h" 23 #include "avsession_pixel_map_adapter.h" 24 25 using namespace testing::ext; 26 using namespace OHOS::Media; 27 28 namespace OHOS { 29 namespace AVSession { 30 31 static OHOS::Parcel g_parcel; 32 33 class AVQueueItemTest : public testing::Test { 34 public: 35 static void SetUpTestCase(); 36 static void TearDownTestCase(); 37 void SetUp() override; 38 void TearDown() override; 39 }; 40 SetUpTestCase()41void AVQueueItemTest::SetUpTestCase() 42 {} 43 TearDownTestCase()44void AVQueueItemTest::TearDownTestCase() 45 {} 46 SetUp()47void AVQueueItemTest::SetUp() 48 {} 49 TearDown()50void AVQueueItemTest::TearDown() 51 {} 52 53 /** 54 * @tc.name: Marshalling001 55 * @tc.desc: test Marshalling 56 * @tc.type: FUNC 57 * @tc.require: 58 */ 59 HWTEST_F(AVQueueItemTest, Marshalling001, TestSize.Level0) 60 { 61 AVQueueItem avQueueItem; 62 OHOS::Parcel& parcel = g_parcel; 63 bool ret = avQueueItem.Marshalling(parcel); 64 EXPECT_EQ(ret, true); 65 } 66 } // namespace AVSession 67 } // namespace OHOS