Test.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <AzCore/std/string/string_view.h>
  9. // this is a mock O3DE Launcher implementation for unit tests and is used
  10. // instead of LauncherProject.cpp. If you modify LauncherProject.cpp or the interface launcher.h, make sure
  11. // to update this file as well.
  12. namespace O3DELauncher
  13. {
  14. bool WaitForAssetProcessorConnect()
  15. {
  16. return false;
  17. }
  18. bool IsDedicatedServer()
  19. {
  20. return false;
  21. }
  22. const char* GetLogFilename()
  23. {
  24. return "@log@/Game.log";
  25. }
  26. const char* GetLauncherTypeSpecialization()
  27. {
  28. return "client";
  29. }
  30. AZStd::string_view GetBuildTargetName()
  31. {
  32. #if !defined (LY_CMAKE_TARGET)
  33. #error "LY_CMAKE_TARGET must be defined in order to add this source file to a CMake executable target"
  34. #endif
  35. return { LY_CMAKE_TARGET };
  36. }
  37. AZStd::string_view GetProjectName()
  38. {
  39. return { "Tests" };
  40. }
  41. AZStd::string_view GetProjectPath()
  42. {
  43. return { "Tests" };
  44. }
  45. bool IsGenericLauncher()
  46. {
  47. return false;
  48. }
  49. }