• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef TELEPHONY_IMS_TEST_H
17 #define TELEPHONY_IMS_TEST_H
18 
19 #include "gtest/gtest.h"
20 
21 #include "cellular_call_interface.h"
22 
23 namespace OHOS {
24 namespace Telephony {
25 class ImsTest : public testing::Test {
26 public:
27     static void SetUpTestCase();
28     static void TearDownTestCase();
29     void SetUp();
30     void TearDown();
31 
32     int32_t SetDomainPreferenceMode(const sptr<CellularCallInterface> &telephonyService) const;
33     int32_t GetDomainPreferenceMode(const sptr<CellularCallInterface> &telephonyService) const;
34     int32_t SetLteImsSwitchStatus(const sptr<CellularCallInterface> &telephonyService) const;
35     int32_t GetLteImsSwitchStatus(const sptr<CellularCallInterface> &telephonyService) const;
36     int32_t SetImsConfigString(const sptr<CellularCallInterface> &telephonyService) const;
37     int32_t SetImsConfigInt(const sptr<CellularCallInterface> &telephonyService) const;
38     int32_t GetImsConfig(const sptr<CellularCallInterface> &telephonyService) const;
39     int32_t SetImsFeatureValue(const sptr<CellularCallInterface> &telephonyService) const;
40     int32_t GetImsFeatureValue(const sptr<CellularCallInterface> &telephonyService) const;
41     int32_t SetImsSwitchEnhanceMode(const sptr<CellularCallInterface> &telephonyService) const;
42     int32_t GetImsSwitchEnhanceMode(const sptr<CellularCallInterface> &telephonyService) const;
43     int32_t CtrlCamera(const sptr<CellularCallInterface> &telephonyService) const;
44     int32_t SetPreviewWindow(const sptr<CellularCallInterface> &telephonyService) const;
45     int32_t SetDisplayWindow(const sptr<CellularCallInterface> &telephonyService) const;
46     int32_t SetCameraZoom(const sptr<CellularCallInterface> &telephonyService) const;
47     int32_t SetPauseImage(const sptr<CellularCallInterface> &telephonyService) const;
48     int32_t SetDeviceDirection(const sptr<CellularCallInterface> &telephonyService) const;
49     int32_t InputNumForInterface(const sptr<CellularCallInterface> &telephonyService) const;
50 
51 private:
52     using RequestFuncType = int32_t (ImsTest::*)(const sptr<CellularCallInterface> &telephonyService) const;
53     std::map<int32_t, RequestFuncType> requestFuncMap_;
54 };
55 } // namespace Telephony
56 } // namespace OHOS
57 
58 #endif // TELEPHONY_IMS_TEST_H
59