]> git.stg.codes - ssmd.git/blobdiff - tests/test_data_parser.cpp
Fix build on osx.
[ssmd.git] / tests / test_data_parser.cpp
index 3c3292e32ba82b0763917018adab5f43963f4dcb..4ce17eb5d5781178a4ba280801d6266cf0e07afe 100644 (file)
@@ -3,11 +3,11 @@
 #include "datatypes.h"
 #include "logger.h"
 
 #include "datatypes.h"
 #include "logger.h"
 
-GTS::Logger logger;
+SSMD::Logger logger;
 
 int main()
 {
 
 int main()
 {
-    GTS::Lines lines;
+    SSMD::Lines lines;
     std::string data(
 "172.16.47.10,gts_community_r,gts_community_w,10,1,001CC0B16177,64,128,64,128\n"
 "172.16.47.11,gts_community_r,gts_community_w,10,1,001CC0B16178,65,129,66,138\n"
     std::string data(
 "172.16.47.10,gts_community_r,gts_community_w,10,1,001CC0B16177,64,128,64,128\n"
 "172.16.47.11,gts_community_r,gts_community_w,10,1,001CC0B16178,65,129,66,138\n"
@@ -20,7 +20,7 @@ int main()
     if (!parseData(data, lines)) {
         logger << "Failed to parse data" << std::endl;
     } else {
     if (!parseData(data, lines)) {
         logger << "Failed to parse data" << std::endl;
     } else {
-        GTS::Lines::const_iterator it;
+        SSMD::Lines::const_iterator it;
         for (it = lines.begin(); it != lines.end(); ++it) {
             logger << "line: "
                    << it->switchIP << ","
         for (it = lines.begin(); it != lines.end(); ++it) {
             logger << "line: "
                    << it->switchIP << ","