Test: keep mock class definition within header to reduce the amount of files, once...
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sat, 21 Jan 2012 13:22:58 +0000 (11:22 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sat, 21 Jan 2012 13:22:58 +0000 (11:22 -0200)
test/CMakeLists.test_hoststatusanalyzer.txt
test/mock_linkstatusanalyzer.cpp [deleted file]
test/mock_linkstatusanalyzer.h

index 5ac0172..901dead 100644 (file)
@@ -1,7 +1,6 @@
 # compiler: creates the binaries
 add_executable(test_hoststatusanalyzer
     test_hoststatusanalyzer.cpp
-    mock_linkstatusanalyzer.cpp
     ${CMAKE_SOURCE_DIR}/src/host/hoststatusanalyzer.cpp
 )
 
diff --git a/test/mock_linkstatusanalyzer.cpp b/test/mock_linkstatusanalyzer.cpp
deleted file mode 100644 (file)
index 722733b..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
-The software in this package is distributed under the GNU General
-Public License version 2 (with a special exception described below).
-
-A copy of GNU General Public License (GPL) is included in this distribution,
-in the file COPYING.GPL.
-
-As a special exception, if other files instantiate templates or use macros
-or inline functions from this file, or you compile this file and link it
-with other works to produce a work based on this file, this file
-does not by itself cause the resulting work to be covered
-by the GNU General Public License.
-
-However the source code for this file must still be made available
-in accordance with section (3) of the GNU General Public License.
-
-This exception does not invalidate any other reasons why a work based
-on this file might be covered by the GNU General Public License.
-*/
-
-#include "mock_linkstatusanalyzer.h"
-
-using namespace std;
-
-LinkStatusAnalyzer::LinkStatusAnalyzer()
-{
-}
-
-LinkStatusAnalyzer::~LinkStatusAnalyzer()
-{
-}
-
-void LinkStatusAnalyzer::notify_host_up( const string &host_address )
-{
-}
-
-void LinkStatusAnalyzer::notify_host_down( const string &host_address )
-{
-}
index d116b13..017501f 100644 (file)
@@ -45,6 +45,24 @@ public:
 };
 
 //-----------------------------------------------------------------------------
+
+LinkStatusAnalyzer::LinkStatusAnalyzer()
+{
+}
+
+LinkStatusAnalyzer::~LinkStatusAnalyzer()
+{
+}
+
+void LinkStatusAnalyzer::notify_host_up( const std::string &host_address )
+{
+}
+
+void LinkStatusAnalyzer::notify_host_down( const std::string &host_address )
+{
+}
+
+//-----------------------------------------------------------------------------
 // LinkStatusAnalyzerItem
 //-----------------------------------------------------------------------------