1 /*
2  * Copyright (c) 2022 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 "mock_test_observer_stub.h"
17 #include "hilog_tag_wrapper.h"
18 
19 namespace OHOS {
20 namespace AAFwk {
~MockTestObserverStub()21 MockTestObserverStub::~MockTestObserverStub()
22 {}
23 
OnRemoteRequest(uint32_t code,MessageParcel & data,MessageParcel & reply,MessageOption & option)24 int MockTestObserverStub::OnRemoteRequest(
25     uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option)
26 {
27     return 0;
28 }
29 
TestStatus(const std::string & msg,const int64_t & resultCode)30 void MockTestObserverStub::TestStatus(const std::string& msg, const int64_t& resultCode)
31 {
32     TAG_LOGI(AAFwkTag::TEST, "MockTestObserverStub::TestStatus is called");
33 
34     testStatusFlag = true;
35 }
36 
TestFinished(const std::string & msg,const int64_t & resultCode)37 void MockTestObserverStub::TestFinished(const std::string& msg, const int64_t& resultCode)
38 {}
39 
ExecuteShellCommand(const std::string & cmd,const int64_t timeoutMs)40 ShellCommandResult MockTestObserverStub::ExecuteShellCommand(
41     const std::string& cmd, const int64_t timeoutMs)
42 {
43     return ShellCommandResult();
44 }
45 }  // namespace AAFwk
46 }  // namespace OHOS
47