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 #include <iostream>
17 
18 #include "netnative_log_wrapper.h"
19 #include "test_notify_callback.h"
20 
21 namespace OHOS {
22 namespace NetsysNative {
TestNotifyCallback()23 TestNotifyCallback::TestNotifyCallback() {}
24 
~TestNotifyCallback()25 TestNotifyCallback::~TestNotifyCallback() {}
26 
OnInterfaceAddressUpdated(const std::string &,const std::string &,int,int)27 int32_t TestNotifyCallback::OnInterfaceAddressUpdated(const std::string &, const std::string &, int, int)
28 {
29     NETNATIVE_LOGI("Begin to TestNotifyCallback::OnInterfaceAddressUpdated");
30 
31     return 0;
32 }
33 
OnInterfaceAddressRemoved(const std::string &,const std::string &,int,int)34 int32_t TestNotifyCallback::OnInterfaceAddressRemoved(const std::string &, const std::string &, int, int)
35 {
36     NETNATIVE_LOGI("Begin to TestNotifyCallback::OnInterfaceAddressRemoved");
37 
38     return 0;
39 }
40 
OnInterfaceAdded(const std::string &)41 int32_t TestNotifyCallback::OnInterfaceAdded(const std::string &)
42 {
43     NETNATIVE_LOGI("Begin to TestNotifyCallback::OnInterfaceAdded");
44 
45     return 0;
46 }
47 
OnInterfaceRemoved(const std::string &)48 int32_t TestNotifyCallback::OnInterfaceRemoved(const std::string &)
49 {
50     NETNATIVE_LOGI("Begin to TestNotifyCallback::OnInterfaceRemoved");
51 
52     return 0;
53 }
54 
OnInterfaceChanged(const std::string &,bool)55 int32_t TestNotifyCallback::OnInterfaceChanged(const std::string &, bool)
56 {
57     NETNATIVE_LOGI("Begin to TestNotifyCallback::OnInterfaceChanged");
58 
59     return 0;
60 }
61 
OnInterfaceLinkStateChanged(const std::string &,bool)62 int32_t TestNotifyCallback::OnInterfaceLinkStateChanged(const std::string &, bool)
63 {
64     NETNATIVE_LOGI("Begin to TestNotifyCallback::OnInterfaceLinkStateChanged");
65 
66     return 0;
67 }
68 
OnRouteChanged(bool,const std::string &,const std::string &,const std::string &)69 int32_t TestNotifyCallback::OnRouteChanged(bool, const std::string &, const std::string &, const std::string &)
70 {
71     NETNATIVE_LOGI("Begin to TestNotifyCallback::OnRouteChanged");
72 
73     return 0;
74 }
75 
OnDhcpSuccess(sptr<OHOS::NetsysNative::DhcpResultParcel> & dhcpResult)76 int32_t TestNotifyCallback::OnDhcpSuccess(sptr<OHOS::NetsysNative::DhcpResultParcel> &dhcpResult)
77 {
78     NETNATIVE_LOGI("Begin to TestNotifyCallback::OnDhcpSuccess");
79 
80     return 0;
81 }
82 } // namespace NetsysNative
83 } // namespace OHOS
84