mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-01-10 10:55:26 +00:00
024266950e
Signed-off-by: liyujie <liyujie43@huawei.com> Change-Id: Ifb6a7afd0abd624b2e66276a1537eb2b6f9358bd
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#include "gtest/gtest.h"
|
|
#include "interfaces/inner_api/ace/ui_content.h"
|
|
|
|
using namespace testing;
|
|
using namespace testing::ext;
|
|
|
|
namespace OHOS::Ace {
|
|
class UiContentTest : public testing::Test {};
|
|
|
|
/**
|
|
* @tc.name: DumpTest001
|
|
* @tc.desc: test Dump infos
|
|
* @tc.type: FUNC
|
|
*/
|
|
HWTEST_F(UiContentTest, DumpTest001, TestSize.Level1)
|
|
{
|
|
auto infos = std::vector<std::string>();
|
|
UIContent::ShowDumpHelp(infos);
|
|
EXPECT_GT(infos.size(), 0);
|
|
for (const auto& info : infos) {
|
|
GTEST_LOG_(INFO) << info;
|
|
}
|
|
}
|
|
} // namespace OHOS::Ace
|