2a2847b15d
* Legacy cleanup - part 3 Not much is left that can be easily removed, so I think this will be last cleanup before the legacy functionality is replaced. Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * fix windows build, remove a few more things, re-add one file Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Remove legacy RenderBus + more cleanups Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Remove MaterialOwnerBus.h Clean-up in Cry_Matrix34/33 Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
58 lines
2.1 KiB
C++
58 lines
2.1 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
#pragma once
|
|
#include <ILog.h>
|
|
|
|
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_METHOD1(Indent,
|
|
void(class CLogIndenter * indenter));
|
|
MOCK_METHOD1(Unindent,
|
|
void(class CLogIndenter * indenter));
|
|
MOCK_METHOD0(FlushAndClose,
|
|
void());
|
|
};
|