tests/dde-calendar-client-test/src/test_tabletconfig.cpp
raw| 1 | // SPDX-FileCopyrightText: 2019 - 2026 UnionTech Software Technology Co., Ltd. |
| 2 | // |
| 3 | // SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 | |
| 5 | #include "test_tabletconfig.h" |
| 6 | |
| 7 | test_TabletConfig::test_TabletConfig() |
| 8 | { |
| 9 | } |
| 10 | |
| 11 | TEST(istableTest, TabletConfig) |
| 12 | { |
| 13 | TabletConfig tabletconfig; |
| 14 | tabletconfig.setIsTablet(true); |
| 15 | ASSERT_TRUE(tabletconfig.isTablet()); |
| 16 | tabletconfig.setIsTablet(false); |
| 17 | ASSERT_FALSE(tabletconfig.isTablet()); |
| 18 | } |