summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRALOVICH, Kristof <tade60@freemail.hu>2014-01-08 15:02:13 +0100
committerRALOVICH, Kristof <tade60@freemail.hu>2014-01-08 15:02:13 +0100
commita17306eab050ad156a6ec31761beb4083fbc5f11 (patch)
treecedca334b17f5d0c286efa123ee2145da99b94ff /src
parent8b9c6eead787ac37a0d7a00fcfa4eb10183c3401 (diff)
tests: tests are under regular GPLv3
Diffstat (limited to 'src')
-rw-r--r--src/tests/testDateTime.cpp23
-rw-r--r--src/tests/testDeviceSettings.cpp25
2 files changed, 30 insertions, 18 deletions
diff --git a/src/tests/testDateTime.cpp b/src/tests/testDateTime.cpp
index d87ded9..a60e272 100644
--- a/src/tests/testDateTime.cpp
+++ b/src/tests/testDateTime.cpp
@@ -1,14 +1,19 @@
// -*- mode: c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; coding: utf-8-unix -*-
// ***** BEGIN LICENSE BLOCK *****
-////////////////////////////////////////////////////////////////////
-// //
-// Copyright (c) 2011-2013 RALOVICH, Kristóf //
-// //
-// This program is free software; you can redistribute it and/or //
-// modify it under the terms of the GNU General Public License //
-// version 2 as published by the Free Software Foundation. //
-// //
-////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////
+// Copyright (c) 2011-2014 RALOVICH, Kristóf //
+// //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 3 of the License, or //
+// (at your option) any later version. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+//////////////////////////////////////////////////////////////////////////
// ***** END LICENSE BLOCK *****
#include "AntMessenger.hpp"
diff --git a/src/tests/testDeviceSettings.cpp b/src/tests/testDeviceSettings.cpp
index 1f68610..1fd8378 100644
--- a/src/tests/testDeviceSettings.cpp
+++ b/src/tests/testDeviceSettings.cpp
@@ -1,14 +1,19 @@
// -*- mode: c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; coding: utf-8-unix -*-
// ***** BEGIN LICENSE BLOCK *****
-////////////////////////////////////////////////////////////////////
-// //
-// Copyright (c) 2011-2013 RALOVICH, Kristóf //
-// //
-// This program is free software; you can redistribute it and/or //
-// modify it under the terms of the GNU General Public License //
-// version 2 as published by the Free Software Foundation. //
-// //
-////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////
+// Copyright (c) 2011-2014 RALOVICH, Kristóf //
+// //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 3 of the License, or //
+// (at your option) any later version. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+//////////////////////////////////////////////////////////////////////////
// ***** END LICENSE BLOCK *****
#include "AntMessenger.hpp"
@@ -114,6 +119,7 @@ BOOST_AUTO_TEST_CASE(load_save)
BOOST_CHECK(DeviceSettings::time2str(m_ds->LastTransferredTime)=="2012-06-20T19:02:30Z");
BOOST_CHECK(m_ds->LastUserProfileTime == 1304868688);
BOOST_CHECK(m_ds->LastTransferredTime == 1340218950);
+ BOOST_CHECK(m_ds->SerialWriteDelayMs == 3)
BOOST_CHECK(m_ds->loadFromFile(fname_tmp));
@@ -126,6 +132,7 @@ BOOST_AUTO_TEST_CASE(load_save)
BOOST_CHECK(DeviceSettings::time2str(m_ds->LastTransferredTime)=="2000-01-01T00:00:00Z");
BOOST_CHECK(m_ds->LastUserProfileTime == 946684800);
BOOST_CHECK(m_ds->LastTransferredTime == 946684800);
+ BOOST_CHECK(m_ds->SerialWriteDelayMs == 3);
}