Component Tests
authorJustin Dickow <jjdickow@gmail.com>
Wed, 23 Jul 2014 17:48:15 +0000 (13:48 -0400)
committerJustin Dickow <jjdickow@gmail.com>
Wed, 23 Jul 2014 17:48:15 +0000 (13:48 -0400)
Signed-off-by: Justin Dickow <jjdickow@gmail.com>
test/components/media_manager/CMakeLists.txt
test/components/mobile_message_handler/CMakeLists.txt
test/components/transport_manager/include/transport_manager/mock_transport_adapter_listener.h
test/components/transport_manager/include/transport_manager/mock_transport_manager_listener.h

index 4ada438..40ce0d8 100644 (file)
@@ -47,6 +47,7 @@ endif()
 create_test("test_MediaManager" "${SOURCES}" "${LIBRARIES}")
 
 if(ENABLE_LOG)
-  target_link_libraries("test_MediaManager" log4cxx)
+  add_dependencies("test_MediaManager" liblog4cxx)
+  target_link_libraries("test_MediaManager" log4cxx -L${LOG4CXX_LIBS_DIRECTORY})
 endif()
 # vim: set ts=2 sw=2 et:
index c4b4105..20fe292 100644 (file)
@@ -27,7 +27,8 @@ create_test("test_mobile_message_handler"
        "${LIBRARIES}")
 
 if(ENABLE_LOG)
-  target_link_libraries("test_mobile_message_handler" log4cxx)
+  add_dependencies("test_mobile_message_handler" liblog4cxx)
+  target_link_libraries("test_mobile_message_handler" log4cxx -L${LOG4CXX_LIBS_DIRECTORY})
 endif()
 
 file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/log4cxx.properties DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
index d3ab537..05d7267 100644 (file)
@@ -55,6 +55,8 @@ class MockTransportAdapterListener : public TransportAdapterListener {
       void(const TransportAdapter* transport_adapter));
   MOCK_METHOD2(OnSearchDeviceFailed,
       void(const TransportAdapter* transport_adapter, const SearchDeviceError& error));
+  MOCK_METHOD2(OnApplicationListUpdated,
+      void(const TransportAdapter* adapter, const DeviceUID& device_handle));
   MOCK_METHOD1(OnDeviceListUpdated,
       void(const TransportAdapter* transport_adapter));
   MOCK_METHOD3(OnConnectDone,
index 0862314..64c6092 100644 (file)
@@ -65,6 +65,7 @@ class MockTransportManagerListener :
     public ::transport_manager::TransportManagerListener {
  public:
   MOCK_METHOD1(OnDeviceListUpdated, void(const std::vector<DeviceInfo>&));
+  MOCK_METHOD1(OnApplicationListUpdated, void(DeviceHandle device_handle));
   MOCK_METHOD1(OnDeviceFound, void(const DeviceInfo &device_info));
   MOCK_METHOD1(OnDeviceAdded, void(const DeviceInfo &device_info));
   MOCK_METHOD1(OnDeviceRemoved, void(const DeviceInfo &device_info));