Files
MuditaOS/module-gui/test/test-google/TestBoxLayout.hpp
Przemyslaw Brudny bff70a4ab3 [BH-1029] Refactored Time widgets with colon and content change
Refactored Time widget colon handling to be mapped with used
font. Added contentChange flag and handling to BoxLayout
for dynamic recalculation of child elements.
2021-10-18 18:15:40 +02:00

30 lines
1.0 KiB
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <gtest/gtest.h>
#include <module-gui/gui/widgets/BoxLayout.hpp>
class TestBoxLayout : public gui::BoxLayout
{
public:
friend class BoxLayoutTesting;
FRIEND_TEST(BoxLayoutTesting, Constructor_Destructor_Test);
FRIEND_TEST(BoxLayoutTesting, Fill_Box_Test);
FRIEND_TEST(BoxLayoutTesting, Navigate_Test);
FRIEND_TEST(BoxLayoutTesting, Border_Callback_Test);
FRIEND_TEST(BoxLayoutTesting, Box_Alignment_Test);
FRIEND_TEST(BoxLayoutTesting, Box_Widget_Min_Max_Resize_Test);
FRIEND_TEST(BoxLayoutTesting, Box_Widgets_Alignment_Test);
FRIEND_TEST(BoxLayoutTesting, Box_Widgets_Alignment_Magrin_Test);
FRIEND_TEST(BoxLayoutTesting, Box_Margins_Test);
FRIEND_TEST(BoxLayoutTesting, Box_Content_Change_Test);
TestBoxLayout(Item *parent, uint32_t x, uint32_t y, uint32_t w, uint32_t h) : BoxLayout(parent, x, y, w, h){};
~TestBoxLayout() = default;
};