• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 MOCK_BSUNI_DRIVER_H
17 #define MOCK_BSUNI_DRIVER_H
18 
19 #include <gmock/gmock.h>
20 #include "vendor_bsuni_driver.h"
21 
22 namespace OHOS {
23 namespace Print {
24 class MockBsuniDriver {
25 public:
26     MOCK_METHOD1(OnCreate, int32_t(const Print_ServiceAbility *));
27     MOCK_METHOD0(OnDestroy, int32_t());
28     MOCK_METHOD0(OnStartDiscovery, int32_t());
29     MOCK_METHOD0(OnStopDiscovery, int32_t());
30     MOCK_METHOD1(OnConnectPrinter, int32_t(const char *));
31     MOCK_METHOD1(OnDisconnectPrinter, int32_t(const char *));
32     MOCK_METHOD1(OnQueryCapability, int32_t(const char *));
33     MOCK_METHOD2(OnQueryCapabilityByIp, int32_t(const char *, const char *protocol));
34     MOCK_METHOD2(OnQueryProperties, int32_t(const char *, const Print_StringList *));
35 };
36 }  // namespace Print
37 }  // namespace OHOS
38 #endif  // MOCK_BSUNI_DRIVER_H
39