#include "gtest/gtest.h"
#include "common/system_utils.h"
#include "tests/test_utils/runner/TestSuite.h"
#include "util/Timer.h"
#include "util/test_utils.h"
#include "util/test_utils_unittest_helper.h"
usingnamespaceangle;
namespace
{
#if defined(ANGLE_PLATFORM_WINDOWS)
constexpr char kRunAppHelperExecutable[] = "test_utils_unittest_helper.exe";
#elif ANGLE_PLATFORM_IOS_FAMILY
constexpr char kRunAppHelperExecutable[] =
"../test_utils_unittest_helper.app/test_utils_unittest_helper";
#else
constexpr char kRunAppHelperExecutable[] = …;
#endif
std::string NormalizeNewLines(const std::string &str)
{ … }
TEST(TestUtils, Sleep)
{ … }
#if defined(ANGLE_PLATFORM_ANDROID)
#define MAYBE_RunApp …
#define MAYBE_RunAppAsync …
#define MAYBE_RunAppAsyncRedirectStderrToStdout …
#elif defined(ANGLE_PLATFORM_FUCHSIA)
#define MAYBE_RunApp …
#define MAYBE_RunAppAsync …
#define MAYBE_RunAppAsyncRedirectStderrToStdout …
#elif ANGLE_PLATFORM_IOS_FAMILY_SIMULATOR
#define MAYBE_RunApp …
#define MAYBE_RunAppAsync …
#define MAYBE_RunAppAsyncRedirectStderrToStdout …
#else
#define MAYBE_RunApp …
#define MAYBE_RunAppAsync …
#define MAYBE_RunAppAsyncRedirectStderrToStdout …
#endif
std::string GetTestAppExecutablePath()
{ … }
TEST(TestUtils, MAYBE_RunApp)
{ … }
TEST(TestUtils, MAYBE_RunAppAsync)
{ … }
TEST(TestUtils, MAYBE_RunAppAsyncRedirectStderrToStdout)
{ … }
TEST(TestUtils, NumberOfProcessors)
{ … }
}