[Title] emulator-test : modify tc eventinjector
authorjihye kim <jihye1128.kim@samsung.com>
Thu, 29 Nov 2012 01:48:11 +0000 (10:48 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Thu, 29 Nov 2012 01:48:11 +0000 (10:48 +0900)
[Desc.] modify tc eventinjector
[Issue] N/A

vts/src/TcEventInjector.cpp
vts/src/TcEventInjector.h
vts/src/main.cpp

index 6bdeeda..035ee9d 100644 (file)
@@ -34,7 +34,7 @@ void TsEventInjector::runTest()
        Test();
 }
 
-void TsEventInjector::AddTest(ssdb* tc)
+void TsEventInjector::AddTest(TC* tc)
 {
        Add(tc);
 }
index 419ab1b..ba90e67 100644 (file)
@@ -18,7 +18,7 @@ public:
        virtual void Prepare();
        void runTest();
 
-       void AddTest(ssdb* tc);
+       void AddTest(TC* tc);
 };
 
 
index 153ea4b..f79a56f 100644 (file)
@@ -15,6 +15,7 @@
 #include "TcNet.h"
 #include "TcSS.h"
 #include "TcIDE.h"
+#include "TcEventInjector.h"
 
 using namespace te_test;
 
@@ -233,12 +234,10 @@ void register_lua_funcs(lua_State *L)
         .method("AddTest", &TsSS::AddTest)
         .method("Remove", &TsSS::Remove);
 
-       m.subclass<TsSS, cmd_suite>("TsEventInjector")
+       m.subclass<TsEventInjector, cmd_suite>("TsEventInjector")
         .constructor<void (*) (const char *)>()
-     .method("runTest", &TsSS::runTest)
-        .method("AddTest", &TsSS::AddTest)
-        .method("AddNetTest", &TsSS::AddNetTest)
-        .method("Remove", &TsSS::Remove);
+        .method("runTest", &TsEventInjector::runTest)
+        .method("AddTest", &TsEventInjector::AddTest);
 
        m.class_<nmsg_handler>("nmsg_handler")
                .constructor<void (*) (const char *)>();