Skip to content

Commit

Permalink
Merge branch 'master' into development/namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
msieben committed Jun 26, 2024
2 parents 34ca122 + 0392ba8 commit 701d754
Show file tree
Hide file tree
Showing 63 changed files with 395 additions and 154 deletions.
4 changes: 1 addition & 3 deletions Tests/unit/IPTestAdministrator.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@

#pragma once

#define MODULE_NAME ThunderUnitTests

#include <string>
#include <time.h>

class IPTestAdministrator;
#include "Module.h"

class IPTestAdministrator
{
Expand Down
24 changes: 24 additions & 0 deletions Tests/unit/Module.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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.
*/

#pragma once

#ifndef MODULE_NAME
#define MODULE_NAME ThunderUnitTests
#endif
12 changes: 7 additions & 5 deletions Tests/unit/core/test_cyclicbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>
#include <thread>
#include <condition_variable>
#include <mutex>

#include "../IPTestAdministrator.h"

namespace Thunder {
namespace Tests {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_databuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_dataelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/DataElement.h>

namespace Thunder {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_dataelementfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
8 changes: 7 additions & 1 deletion Tests/unit/core/test_doorbell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

#include "../IPTestAdministrator.h"

namespace Thunder {
namespace Tests {
namespace Core {
Expand Down
8 changes: 6 additions & 2 deletions Tests/unit/core/test_enumerate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME

#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
8 changes: 6 additions & 2 deletions Tests/unit/core/test_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"
#include <thread>

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>
#include <thread>

namespace Thunder {
namespace Tests {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_frametype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
8 changes: 6 additions & 2 deletions Tests/unit/core/test_hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"
#include <thread>

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>
#include <cryptalgo/cryptalgo.h>
#include <thread>

namespace Thunder {
namespace Tests {
Expand Down
8 changes: 6 additions & 2 deletions Tests/unit/core/test_hex2strserialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"
#include <functional>
#include <sstream>

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include "core/core.h"

namespace Thunder {
Expand Down Expand Up @@ -88,4 +92,4 @@ namespace Core {

} // Core
} // Tests
} // Thunder
} // Thunder
9 changes: 7 additions & 2 deletions Tests/unit/core/test_ipc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

#include "../IPTestAdministrator.h"

namespace Thunder {
namespace Tests {
namespace Core {
Expand Down
9 changes: 7 additions & 2 deletions Tests/unit/core/test_ipcclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

#include "../IPTestAdministrator.h"

namespace Thunder {
namespace Tests {
namespace Core {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_iso639.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
8 changes: 5 additions & 3 deletions Tests/unit/core/test_jsonparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@

#include <functional>
#include <sstream>
#include <string>

#include <gtest/gtest.h>

#include "../IPTestAdministrator.h"
#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

#include <string>

namespace Thunder {
namespace Tests {
namespace Core {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_keyvalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_lockablecontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
7 changes: 5 additions & 2 deletions Tests/unit/core/test_measurementtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>

namespace Thunder {
Expand Down
8 changes: 6 additions & 2 deletions Tests/unit/core/test_memberavailability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
* limitations under the License.
*/

#include "../IPTestAdministrator.h"
#include <thread>

#include <gtest/gtest.h>

#ifndef MODULE_NAME
#include "../Module.h"
#endif

#include <core/core.h>
#include <thread>

namespace Thunder {
namespace Tests {
Expand Down
Loading

0 comments on commit 701d754

Please sign in to comment.