Skip to content

Commit

Permalink
Create DispatcherMock.h
Browse files Browse the repository at this point in the history
  • Loading branch information
parvathika authored Sep 2, 2024
1 parent a0daddd commit 4d908a1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions mocks/thunder /DispatcherMock.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2023 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef DISPATCHERMOCK_H
#define DISPATCHERMOCK_H

#include <gmock/gmock.h>

#include "Module.h"

class DispatcherMock: public WPEFramework::PluginHost::IDispatcher{
public:
virtual ~DispatcherMock() = default;
MOCK_METHOD(void, AddRef, (), (const, override));
MOCK_METHOD(uint32_t, Release, (), (const, override));
MOCK_METHOD(void*, QueryInterface, (const uint32_t interfaceNummer), (override));
MOCK_METHOD(void, Activate, (WPEFramework::PluginHost::IShell* service));
MOCK_METHOD(void, Deactivate, ());
MOCK_METHOD(WPEFramework::Core::ProxyType<WPEFramework::Core::JSONRPC::Message>, Invoke, (const string&, uint32_t, const WPEFramework::Core::JSONRPC::Message&), (override));
};
#endif //DISPATCHERMOCK_H

0 comments on commit 4d908a1

Please sign in to comment.