RDK Documentation (Open Sourced RDK Components)
TuneSmokeTest.h
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's license file the
3  * 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 
20 /**
21  * @file TuneSmokeTest.h
22  * @brief TuneSmokeTest header file
23  */
24 
25 #ifndef TUNESMOKETEST_H
26 #define TUNESMOKETEST_H
27 
28 #include "gtest/gtest.h"
29 #include "priv_aamp.h"
30 
31 class SmokeTest
32 {
33  public:
34  static bool dashPauseState;
35  static bool dashFastForwardState;
36  static bool dashPlayState;
37  static bool dashRewindState;
38  static bool hlsPauseState;
39  static bool hlsFastForwardState;
40  static bool hlsPlayState;
41  static bool hlsRewindState;
42  static bool livePlayState;
43  static bool livePauseState;
44  static std::vector<std::string> dashTuneData;
45  static std::vector<std::string> hlsTuneData;
46  static std::vector<std::string> liveTuneData;
47 
48  static std::map<std::string, std::string> smokeTestUrls;
49  bool aampTune();
50  void vodTune(const char *stream);
51  void liveTune(const char *stream);
52  void loadSmokeTestUrls();
53  bool createTestFilePath(std::string &filePath);
54  bool readVodData(const char *stream);
55  bool readLiveData(const char *stream);
56  void getTuneDetails();
57  bool getFilePath(std::string &filePath);
58 };
59 
60 #endif // TUNESMOKETEST_H
SmokeTest
Definition: AampcliSmokeTest.h:31
priv_aamp.h
Private functions and types used internally by AAMP.