1 // Copyright (c) 2016 The SigViewer Development Team
2 // Licensed under the GNU General Public License (GPL)
3 // https://www.gnu.org/licenses/gpl
4 
5 
6 #include "color_manager_tests.h"
7 
8 #include "gui/color_manager.h"
9 
10 namespace sigviewer
11 {
12 namespace Tests_
13 {
14 
15 
16 //-----------------------------------------------------------------------------
ColorManagerTests()17 ColorManagerTests::ColorManagerTests ()
18     : Test (tr("ColorManager Tests"))
19 {
20     // nothing to do here
21 }
22 
23 //-----------------------------------------------------------------------------
run()24 QString ColorManagerTests::run ()
25 {
26     QSharedPointer<ColorManager const> color_manager = applicationContext ()->getEventColorManager();
27     VERIFY (color_manager.isNull() == false, "initialized");
28 
29     VERIFY (color_manager->getDefaultEventColor() == QColor (200, 0, 0, 30), "default color");
30     VERIFY (color_manager->getDefaultEventColor(0x0300) == QColor (0, 0, 200, 30), "Start of Trial color");
31 
32     return "";
33 }
34 
35 }
36 }
37