blob: 56216bcbcb04b4ce6fb14426605e304da6995d42 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
#include "ProcessQueue.h"
#include "gmock/gmock.h"
ROCKETMQ_NAMESPACE_BEGIN
class ProcessQueueMock : public ProcessQueue {
public:
MOCK_METHOD(bool, expired, (), (const override));
MOCK_METHOD(void, callback, (std::shared_ptr<ReceiveMessageCallback>), (override));
MOCK_METHOD(void, receiveMessage, (), (override));
MOCK_METHOD(void, nextOffset, (int64_t), (override));
MOCK_METHOD(bool, hasPendingMessages, (), (const override));
MOCK_METHOD(std::string, topic, (), (const override));
MOCK_METHOD(bool, take, (uint32_t, (std::vector<MQMessageExt>&)), (override));
MOCK_METHOD(std::weak_ptr<PushConsumer>, getConsumer, (), (override));
MOCK_METHOD(const std::string&, simpleName, (), (const override));
MOCK_METHOD(bool, committedOffset, (int64_t&), (override));
MOCK_METHOD(void, release, (uint64_t, int64_t), (override));
MOCK_METHOD(void, cacheMessages, (const std::vector<MQMessageExt>&), (override));
MOCK_METHOD(bool, shouldThrottle, (), (const override));
MOCK_METHOD((std::shared_ptr<ClientManager>), getClientManager, (), (override));
MOCK_METHOD(void, syncIdleState, (), (override));
MOCK_METHOD(const FilterExpression&, getFilterExpression, (), (const override));
MOCK_METHOD(bool, bindFifoConsumeTask, (), (override));
MOCK_METHOD(bool, unbindFifoConsumeTask, (), (override));
MOCK_METHOD(MQMessageQueue, getMQMessageQueue, (), (override));
};
ROCKETMQ_NAMESPACE_END