Github #251 Surround local structs with anonymous namespace
authorMatthew Bentham <Matthew.Bentham@arm.com>
Fri, 22 Nov 2019 11:24:54 +0000 (11:24 +0000)
committerMatthew Bentham <matthew.bentham@arm.com>
Fri, 22 Nov 2019 15:11:08 +0000 (15:11 +0000)
This fixes a one-definition-rule violation

Change-Id: I0941ed21a04876009546b9b73f5fdfbf73c4110d
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
src/armnn/test/CsvReaderTest.cpp
src/armnn/test/ModelAccuracyCheckerTest.cpp

index 22d510b..ed27e57 100644 (file)
@@ -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)
 
index aa1fba2..e161851 100644 (file)
@@ -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)