1049e185fSopenharmony_ci/*
2049e185fSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
3049e185fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4049e185fSopenharmony_ci * you may not use this file except in compliance with the License.
5049e185fSopenharmony_ci * You may obtain a copy of the License at
6049e185fSopenharmony_ci *
7049e185fSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8049e185fSopenharmony_ci *
9049e185fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10049e185fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11049e185fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12049e185fSopenharmony_ci * See the License for the specific language governing permissions and
13049e185fSopenharmony_ci * limitations under the License.
14049e185fSopenharmony_ci */
15049e185fSopenharmony_ci
16049e185fSopenharmony_ci#ifndef STUB_COMMON_H
17049e185fSopenharmony_ci#define STUB_COMMON_H
18049e185fSopenharmony_ci
19049e185fSopenharmony_ci#include "i_standard_media_listener.h"
20049e185fSopenharmony_ci#include "i_standard_media_service.h"
21049e185fSopenharmony_ci#include "iservice_registry.h"
22049e185fSopenharmony_ci#include "system_ability_definition.h"
23049e185fSopenharmony_ci
24049e185fSopenharmony_cinamespace OHOS {
25049e185fSopenharmony_cinamespace Media {
26049e185fSopenharmony_ciclass MediaListenerStubFuzzer : public IRemoteStub<IStandardMediaListener>, public NoCopyable {
27049e185fSopenharmony_cipublic:
28049e185fSopenharmony_ci    MediaListenerStubFuzzer() = default;
29049e185fSopenharmony_ci    ~MediaListenerStubFuzzer() = default;
30049e185fSopenharmony_ci};
31049e185fSopenharmony_ci
32049e185fSopenharmony_ciclass MediaServiceProxyFuzzer : public IRemoteProxy<IStandardMediaService>, public NoCopyable {
33049e185fSopenharmony_cipublic:
34049e185fSopenharmony_ci    explicit MediaServiceProxyFuzzer(const sptr<IRemoteObject> &impl) : IRemoteProxy<IStandardMediaService>(impl) {}
35049e185fSopenharmony_ci    virtual ~MediaServiceProxyFuzzer() {}
36049e185fSopenharmony_ci    sptr<IRemoteObject> GetSubSystemAbility(IStandardMediaService::MediaSystemAbility subSystemId,
37049e185fSopenharmony_ci        const sptr<IRemoteObject> &listener);
38049e185fSopenharmony_ciprivate:
39049e185fSopenharmony_ci    static inline BrokerDelegator<MediaServiceProxyFuzzer> delegator_;
40049e185fSopenharmony_ci};
41049e185fSopenharmony_ci}
42049e185fSopenharmony_ci}
43049e185fSopenharmony_ci#endif // STUB_COMMON_H
44