daac7079428170f6dbf818cab1757c5fe5e47cc0
[profile/ivi/genivi/genivi-audio-manager.git] / AudioManagerDaemon / test / controlInterface / controlInterfaceTest.h
1 /*
2  * routingInterfaceTest.h
3  *
4  *  Created on: Dec 10, 2011
5  *      Author: christian
6  */
7
8 #ifndef ROUTINGINTERFACETEST_H_
9 #define ROUTINGINTERFACETEST_H_
10
11 #include <gtest/gtest.h>
12 #include <gmock/gmock.h>
13 #include <dlt/dlt.h>
14 #include <algorithm>
15 #include <string>
16 #include <vector>
17 #include <set>
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"
29
30 DLT_DECLARE_CONTEXT(AudioManager)
31
32 using namespace testing;
33 using namespace am;
34
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;
43 using ::testing::Eq;
44 using ::testing::An;
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;
53
54 class controlInterfaceTest : public Test{
55 public:
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;
72         CommonFunctions pCF;
73         void SetUp();
74         void TearDown();
75 };
76
77 #endif /* ROUTINGINTERFACETEST_H_ */