2 * routingInterfaceTest.h
4 * Created on: Dec 10, 2011
8 #ifndef ROUTINGINTERFACETEST_H_
9 #define ROUTINGINTERFACETEST_H_
11 #include <gtest/gtest.h>
12 #include <gmock/gmock.h>
18 #include "MockInterfaces.h"
19 #include "DatabaseHandler.h"
20 #include "ControlReceiver.h"
21 #include "RoutingReceiver.h"
22 #include "DatabaseObserver.h"
23 #include "ControlSender.h"
24 #include "RoutingSender.h"
25 #include "../RoutingInterfaceBackdoor.h"
26 #include "../CommandInterfaceBackdoor.h"
27 #include "../ControlInterfaceBackdoor.h"
28 #include "../CommonFunctions.h"
30 DLT_DECLARE_CONTEXT(AudioManager)
32 using namespace testing;
35 using ::testing::Field;
36 using ::testing::Property;
37 using ::testing::Matcher;
38 using ::testing::Pointee;
39 using ::testing::AllOf;
40 using ::testing::SafeMatcherCast;
41 using ::testing::MatcherCast;
42 using ::testing::DefaultValue;
45 using ::testing::ElementsAreArray;
46 using ::testing::ElementsAre;
47 using ::testing::NotNull;
48 using ::testing::Assign;
49 using ::testing::SetArgReferee;
50 using ::testing::DoAll;
51 using ::testing::MatcherInterface;
52 using ::testing::MatchResultListener;
54 class controlInterfaceTest : public Test{
56 controlInterfaceTest();
57 ~controlInterfaceTest();
58 std::vector<std::string> plistRoutingPluginDirs;
59 std::vector<std::string> plistCommandPluginDirs;
60 DatabaseHandler pDatabaseHandler;
61 RoutingSender pRoutingSender;
62 CommandSender pCommandSender;
63 MockRoutingSendInterface pMockRoutingInterface;
64 MockControlSendInterface pMockControlInterface;
65 ControlSender pControlSender;
66 RoutingInterfaceBackdoor pRoutingInterfaceBackdoor;
67 CommandInterfaceBackdoor pCommandInterfaceBackdoor;
68 ControlInterfaceBackdoor pControlInterfaceBackdoor;
69 DatabaseObserver pDatabaseObserver;
70 ControlReceiver pControlReceiver;
71 RoutingReceiver pRoutingReceiver;
77 #endif /* ROUTINGINTERFACETEST_H_ */