114cf0368Sopenharmony_ci/*
214cf0368Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd.
314cf0368Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
414cf0368Sopenharmony_ci * you may not use this file except in compliance with the License.
514cf0368Sopenharmony_ci * You may obtain a copy of the License at
614cf0368Sopenharmony_ci *
714cf0368Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
814cf0368Sopenharmony_ci *
914cf0368Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1014cf0368Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1114cf0368Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1214cf0368Sopenharmony_ci * See the License for the specific language governing permissions and
1314cf0368Sopenharmony_ci * limitations under the License.
1414cf0368Sopenharmony_ci */
1514cf0368Sopenharmony_ci#define LOG_TAG "VideoTest"
1614cf0368Sopenharmony_ci
1714cf0368Sopenharmony_ci#include <unistd.h>
1814cf0368Sopenharmony_ci#include <gtest/gtest.h>
1914cf0368Sopenharmony_ci#include <string>
2014cf0368Sopenharmony_ci
2114cf0368Sopenharmony_ci#include "logger.h"
2214cf0368Sopenharmony_ci#include "udmf_capi_common.h"
2314cf0368Sopenharmony_ci#include "video.h"
2414cf0368Sopenharmony_ci
2514cf0368Sopenharmony_ciusing namespace testing::ext;
2614cf0368Sopenharmony_ciusing namespace OHOS::UDMF;
2714cf0368Sopenharmony_ciusing namespace OHOS;
2814cf0368Sopenharmony_cinamespace OHOS::Test {
2914cf0368Sopenharmony_ciusing namespace std;
3014cf0368Sopenharmony_ci
3114cf0368Sopenharmony_ciclass VideoTest : public testing::Test {
3214cf0368Sopenharmony_cipublic:
3314cf0368Sopenharmony_ci    static void SetUpTestCase();
3414cf0368Sopenharmony_ci    static void TearDownTestCase();
3514cf0368Sopenharmony_ci    void SetUp() override;
3614cf0368Sopenharmony_ci    void TearDown() override;
3714cf0368Sopenharmony_ci};
3814cf0368Sopenharmony_ci
3914cf0368Sopenharmony_civoid VideoTest::SetUpTestCase()
4014cf0368Sopenharmony_ci{
4114cf0368Sopenharmony_ci}
4214cf0368Sopenharmony_ci
4314cf0368Sopenharmony_civoid VideoTest::TearDownTestCase()
4414cf0368Sopenharmony_ci{
4514cf0368Sopenharmony_ci}
4614cf0368Sopenharmony_ci
4714cf0368Sopenharmony_civoid VideoTest::SetUp()
4814cf0368Sopenharmony_ci{
4914cf0368Sopenharmony_ci}
5014cf0368Sopenharmony_ci
5114cf0368Sopenharmony_civoid VideoTest::TearDown()
5214cf0368Sopenharmony_ci{
5314cf0368Sopenharmony_ci}
5414cf0368Sopenharmony_ci
5514cf0368Sopenharmony_ci/**
5614cf0368Sopenharmony_ci* @tc.name: Video001
5714cf0368Sopenharmony_ci* @tc.desc: Normal testcase of Video
5814cf0368Sopenharmony_ci* @tc.type: FUNC
5914cf0368Sopenharmony_ci*/
6014cf0368Sopenharmony_ciHWTEST_F(VideoTest, Video001, TestSize.Level1)
6114cf0368Sopenharmony_ci{
6214cf0368Sopenharmony_ci    LOG_INFO(UDMF_TEST, "Video001 begin.");
6314cf0368Sopenharmony_ci    UDType type = UDType::ENTITY;
6414cf0368Sopenharmony_ci    ValueType value = 0;
6514cf0368Sopenharmony_ci    Video video(type, value);
6614cf0368Sopenharmony_ci    EXPECT_EQ(video.dataType_, VIDEO);
6714cf0368Sopenharmony_ci    LOG_INFO(UDMF_TEST, "Video001 end.");
6814cf0368Sopenharmony_ci}
6914cf0368Sopenharmony_ci} // OHOS::Test