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 COMMON_NOTIFY_CALLBACK_TEST_H
17#define COMMON_NOTIFY_CALLBACK_TEST_H
18
19#include "notify_callback_stub.h"
20
21namespace OHOS {
22namespace NetsysNative {
23class NotifyCallbackTest : public NotifyCallbackStub {
24public:
25    NotifyCallbackTest() = default;
26    ~NotifyCallbackTest() override {};
27    int32_t OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int flags, int scope) override
28    {
29        return 0;
30    }
31
32    int32_t OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int flags, int scope) override
33    {
34        return 0;
35    }
36
37    int32_t OnInterfaceAdded(const std::string &ifName) override
38    {
39        return 0;
40    }
41
42    int32_t OnInterfaceRemoved(const std::string &ifName) override
43    {
44        return 0;
45    }
46
47    int32_t OnInterfaceChanged(const std::string &ifName, bool up) override
48    {
49        return 0;
50    }
51
52    int32_t OnInterfaceLinkStateChanged(const std::string &ifName, bool up) override
53    {
54        return 0;
55    }
56
57    int32_t OnRouteChanged(
58        bool updated, const std::string &route, const std::string &gateway, const std::string &ifName) override
59    {
60        return 0;
61    }
62
63    int32_t OnDhcpSuccess(sptr<DhcpResultParcel> &dhcpResult) override
64    {
65        return 0;
66    }
67
68    int32_t OnBandwidthReachedLimit(const std::string &limitName, const std::string &iface) override
69    {
70        return 0;
71    }
72};
73} // namespace NetsysNative
74} // namespace OHOS
75#endif // COMMON_NOTIFY_CALLBACK_TEST_H
76