From b90c0efcb83c57b98664dca30535cd9405d08884 Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Tue, 17 Jul 2018 09:47:14 -0700 Subject: [PATCH] gtest: Added headers to unit tests Added missing headers for the common and platform extender unit test source files. Signed-off-by: Noel Eck --- tests/unit/api/api_common_h_unit.cxx | 25 +++++++++++++++++++ tests/unit/api/api_common_hpp_unit.cxx | 25 +++++++++++++++++++ .../platform_extender/platform_extender.cxx | 25 +++++++++++++++++++ 3 files changed, 75 insertions(+) diff --git a/tests/unit/api/api_common_h_unit.cxx b/tests/unit/api/api_common_h_unit.cxx index 055c7fb..8b7c3c9 100644 --- a/tests/unit/api/api_common_h_unit.cxx +++ b/tests/unit/api/api_common_h_unit.cxx @@ -1,3 +1,28 @@ +/* + * Author: Noel Eck + * Copyright (c) 2018 Intel Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + + #include "gtest/gtest.h" #include "mraa/common.h" #include "include/mraa_internal_types.h" diff --git a/tests/unit/api/api_common_hpp_unit.cxx b/tests/unit/api/api_common_hpp_unit.cxx index bbfd579..9f3f52d 100644 --- a/tests/unit/api/api_common_hpp_unit.cxx +++ b/tests/unit/api/api_common_hpp_unit.cxx @@ -1,3 +1,28 @@ +/* + * Author: Noel Eck + * Copyright (c) 2018 Intel Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + + #include "gtest/gtest.h" #include "mraa.hpp" diff --git a/tests/unit/platform_extender/platform_extender.cxx b/tests/unit/platform_extender/platform_extender.cxx index ef69fda..7fac775 100644 --- a/tests/unit/platform_extender/platform_extender.cxx +++ b/tests/unit/platform_extender/platform_extender.cxx @@ -1,3 +1,28 @@ +/* + * Author: Noel Eck + * Copyright (c) 2018 Intel Corporation. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + + #include #include "gtest/gtest.h"