RDK Documentation (Open Sourced RDK Components)
gtest_main.cpp
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file
3  * the following copyright and licenses apply:
4  *
5  * Copyright 2022 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 #include "gtest/gtest.h"
20 #include "AampSmokeTestPlayer.h"
21 #include "TuneSmokeTest.h"
22 char gtestReportPath[] = "xml:/tmp/Gtest_Report/aamp_gtest_report.xml";
23 
24 GTEST_API_ int main(int argc, char* argv[])
25 {
26  ::testing::GTEST_FLAG(output) = gtestReportPath;
27  ::testing::InitGoogleTest(&argc, argv);
28 
29  AampPlayer lAampPlayer;
30  SmokeTest lSmokeTest;
31 
32  lAampPlayer.initPlayerLoop(0,NULL);
33 
34 
35  if( (argv[1] == NULL) || ((argv[1] != NULL) && (strncmp(argv[1],"smokeTest",9) != 0)) )
36  {
37  lSmokeTest.aampTune();
38  }
39  lSmokeTest.getTuneDetails();
40 
41  return RUN_ALL_TESTS();
42 }
TuneSmokeTest.h
TuneSmokeTest header file.
AampPlayer::initPlayerLoop
void initPlayerLoop(int argc, char **argv)
To initialize Gstreamer and start mainloop (for standalone mode)
Definition: AampSmokeTestPlayer.cpp:75
AampPlayer
Definition: AampSmokeTestPlayer.h:39
SmokeTest
Definition: AampcliSmokeTest.h:31
AampSmokeTestPlayer.h
AampSmokeTestPlayer header file.