/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ #pragma once #include class LogMock : public ILog { public: MOCK_METHOD3(LogV, void(ELogType nType, const char* szFormat, va_list args)); MOCK_METHOD4(LogV, void(ELogType nType, int flags, const char* szFormat, va_list args)); MOCK_METHOD0(Release, void()); MOCK_METHOD2(SetFileName, bool(const char* fileNameOrFullPath, bool doBackups)); MOCK_METHOD0(GetFileName, const char*()); MOCK_METHOD0(GetBackupFileName, const char*()); virtual void Log([[maybe_unused]] const char* szCommand, ...) override {} virtual void LogWarning([[maybe_unused]] const char* szCommand, ...) override {} virtual void LogError([[maybe_unused]] const char* szCommand, ...) override {} virtual void LogAlways([[maybe_unused]] const char* szCommand, ...) override {} virtual void LogPlus([[maybe_unused]] const char* command, ...) override {} virtual void LogToFile([[maybe_unused]] const char* command, ...) override {} virtual void LogToFilePlus([[maybe_unused]] const char* command, ...) override {} virtual void LogToConsole([[maybe_unused]] const char* command, ...) override {} virtual void LogToConsolePlus([[maybe_unused]] const char* command, ...) override {} virtual void UpdateLoadingScreen([[maybe_unused]] const char* command, ...) override {} MOCK_METHOD1(SetVerbosity, void(int verbosity)); MOCK_METHOD0(GetVerbosityLevel, int()); MOCK_METHOD1(AddCallback, void(ILogCallback * pCallback)); MOCK_METHOD1(RemoveCallback, void(ILogCallback * pCallback)); MOCK_METHOD0(Update, void()); MOCK_METHOD0(GetModuleFilter, const char*()); MOCK_CONST_METHOD1(GetMemoryUsage, void(ICrySizer * pSizer)); MOCK_METHOD1(Indent, void(class CLogIndenter * indenter)); MOCK_METHOD1(Unindent, void(class CLogIndenter * indenter)); MOCK_METHOD0(FlushAndClose, void()); };