aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Bentham <Matthew.Bentham@arm.com>2019-11-22 11:24:54 +0000
committerMatthew Bentham <matthew.bentham@arm.com>2019-11-22 15:11:08 +0000
commit3a93dfa9af49188910a715689c9fb7fc381fa03d (patch)
tree670b8e024d9057cc25d6e3dce2187b31e3e4cf02
parentb86a382417017a4b31bee38eb8291233758ea7d1 (diff)
downloadarmnn-3a93dfa9af49188910a715689c9fb7fc381fa03d.tar.gz
Github #251 Surround local structs with anonymous namespace
This fixes a one-definition-rule violation Change-Id: I0941ed21a04876009546b9b73f5fdfbf73c4110d Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
-rw-r--r--src/armnn/test/CsvReaderTest.cpp2
-rw-r--r--src/armnn/test/ModelAccuracyCheckerTest.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/armnn/test/CsvReaderTest.cpp b/src/armnn/test/CsvReaderTest.cpp
index 22d510bcb6..ed27e57f8e 100644
--- a/src/armnn/test/CsvReaderTest.cpp
+++ b/src/armnn/test/CsvReaderTest.cpp
@@ -14,6 +14,7 @@
using namespace armnnUtils;
+namespace {
struct TestHelper {
TestHelper()
@@ -75,6 +76,7 @@ struct TestHelper {
boost::optional<boost::filesystem::path> m_CsvFile;
};
+}
BOOST_AUTO_TEST_SUITE(CsvReaderTest)
diff --git a/src/armnn/test/ModelAccuracyCheckerTest.cpp b/src/armnn/test/ModelAccuracyCheckerTest.cpp
index aa1fba212c..e1618512eb 100644
--- a/src/armnn/test/ModelAccuracyCheckerTest.cpp
+++ b/src/armnn/test/ModelAccuracyCheckerTest.cpp
@@ -16,6 +16,7 @@
using namespace armnnUtils;
+namespace {
struct TestHelper
{
const std::map<std::string, std::string> GetValidationLabelSet()
@@ -52,6 +53,7 @@ struct TestHelper
return modelOutputLabels;
}
};
+}
BOOST_AUTO_TEST_SUITE(ModelAccuracyCheckerTest)