summaryrefslogtreecommitdiff
path: root/test/test_suit.cc
blob: 70826b18c1b12149370ed7f9f95338df6aecd644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#include "gtest/gtest.h"
#include "gmock/gmock.h"
//#include "config_profile/profile.h"
#include "utils/file_system_tests.h"
#include "utils/prioritized_queue_tests.h"
#include "protocol_handler/protocol_handler_tm_test.h"
//#include "request_watchdog/request_watchdog_test.h"
#include "application_manager/formatters_commands.h"
//#include "media_manager/media_manager_impl_test.h"
//#include "SmartObjectDraftTest.h"
//#include "SmartObjectInvalidTest.h"
//#include "SmartObjectStressTest.h"
//#include "SmartObjectUnitTest.h"
//#include "TSharedPtrTest.h"
//#include "SmartObjectConvertionTimeTest.h"
//#include "jsoncpp/json_reader_test.h"
//#include "json_handler/smart_schema_draft_test.h"
//#include "json_handler/formatters/formatter_test_helper.h"
//#include "json_handler/formatters/formatter_json_alrpcv1_test.h"
//#include "json_handler/formatters/formatter_json_alrpcv2_test.h"
//#include "json_handler/formatters/formatter_json_rpcv2_test.h"


#include "rpc/AdminAppTest.h"
//#include "smart_objects/smart_object.h"
//#include "application_manager/smart_object_keys.h"
//#include "formatters/CSmartFactory.hpp"

//using namespace test::components::request_watchdog_test;
//using namespace test::components::utils;
//using namespace test::components::protocol_handler_test;
//using namespace utils;

//using namespace test::third_party_libs::json_reader_test;
//using namespace test::components::json_handler::smart_schema_draft_test;
//using namespace test::components::json_handler::formatters;

//using namespace NsSmartDeviceLink::NsSmartObjects;
//using namespace NsSmartDeviceLink::NsJSONHandler::strings;
/*
#ifdef __cplusplus
extern "C" void __gcov_flush();
#endif
*/
int main(int argc, char **argv) {printf("\n\n\n after init in Admin \n\n\n");
  ::testing::InitGoogleMock(&argc, argv);

  profile::Profile::instance()->config_file_name("smartDeviceLink.ini");

	application_manager::ApplicationManagerImpl* app_manager_ = 
										application_manager::ApplicationManagerImpl::instance();
										
	printf("\n\n\n after init in Admin \n\n\n");
  //test::app_manager_test::AdminAppTest app;
 
  //threads::Thread threadAdminAppTest("AdminAppTest", &app);

  //threadAdminAppTest.start();

  //app.run();
  
  //threadAdminAppTest.join();
  //sleep(60);

  //app.run();

  //sleep(20);

  //app.run();
  
  //threadAdminAppTest.join();
  //sleep(60);
  

  int result = RUN_ALL_TESTS();
/*
#ifdef __cplusplus
  __gcov_flush();
#endif
*/
  return result;
}