Commit 9b1a9084 by Jamie Madill Committed by Commit Bot

dEQP: Format display factory and clean up style.

This fixes a bunch of minor style issues. Bug: angleproject:2552 Change-Id: If0e8130cf85deb176a5dcbca568cca477d2c1068 Reviewed-on: https://chromium-review.googlesource.com/1062789Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 78b7f3a8
......@@ -14,9 +14,9 @@
#include <gtest/gtest.h>
#include "angle_deqp_libtester.h"
#include "common/Optional.h"
#include "common/angleutils.h"
#include "common/debug.h"
#include "common/Optional.h"
#include "common/platform.h"
#include "common/string_utils.h"
#include "gpu_test_expectations_parser.h"
......@@ -119,8 +119,7 @@ void Die()
exit(EXIT_FAILURE);
}
Optional<std::string> FindTestExpectationsPath(const std::string &exeDir,
size_t testModuleIndex)
Optional<std::string> FindTestExpectationsPath(const std::string &exeDir, size_t testModuleIndex)
{
for (const char *testPath : gTestExpectationsSearchPaths)
{
......@@ -146,12 +145,8 @@ class dEQPCaseList
struct CaseInfo
{
CaseInfo(const std::string &dEQPName,
const std::string &gTestName,
int expectation)
: mDEQPName(dEQPName),
mGTestName(gTestName),
mExpectation(expectation)
CaseInfo(const std::string &dEQPName, const std::string &gTestName, int expectation)
: mDEQPName(dEQPName), mGTestName(gTestName), mExpectation(expectation)
{
}
......@@ -184,8 +179,7 @@ class dEQPCaseList
};
dEQPCaseList::dEQPCaseList(size_t testModuleIndex)
: mTestModuleIndex(testModuleIndex),
mInitialized(false)
: mTestModuleIndex(testModuleIndex), mInitialized(false)
{
}
......@@ -322,9 +316,9 @@ class dEQPTest : public testing::TestWithParam<size_t>
};
template <size_t TestModuleIndex>
unsigned int dEQPTest<TestModuleIndex>::sPasses = 0;
unsigned int dEQPTest<TestModuleIndex>::sPasses = 0;
template <size_t TestModuleIndex>
unsigned int dEQPTest<TestModuleIndex>::sFails = 0;
unsigned int dEQPTest<TestModuleIndex>::sFails = 0;
template <size_t TestModuleIndex>
unsigned int dEQPTest<TestModuleIndex>::sUnexpectedPasses = 0;
......@@ -467,7 +461,7 @@ void DeleteArg(int *argc, int argIndex, char **argv)
}
}
} // anonymous namespace
} // anonymous namespace
// Called from main() to process command-line arguments.
namespace angle
......
......@@ -21,9 +21,9 @@
#ifndef TCU_ANGLE_WIN32_NATIVE_DISPLAY_FACTORY_H_
#define TCU_ANGLE_WIN32_NATIVE_DISPLAY_FACTORY_H_
#include "tcuDefs.hpp"
#include "egluNativeDisplay.hpp"
#include "eglwDefs.hpp"
#include "tcuDefs.hpp"
namespace tcu
{
......@@ -31,10 +31,7 @@ namespace tcu
class EventState
{
public:
EventState()
: mQuit(false)
{
}
EventState() : mQuit(false) {}
bool quitSignaled() const { return mQuit; };
void signalQuitEvent() { mQuit = true; };
......@@ -47,16 +44,16 @@ class ANGLENativeDisplayFactory : public eglu::NativeDisplayFactory
public:
ANGLENativeDisplayFactory(const std::string &name,
const std::string &description,
const std::vector<eglw::EGLAttrib> &platformAttributes,
std::vector<eglw::EGLAttrib> platformAttributes,
EventState *eventState);
~ANGLENativeDisplayFactory() override;
eglu::NativeDisplay *createDisplay(const eglw::EGLAttrib* attribList) const override;
eglu::NativeDisplay *createDisplay(const eglw::EGLAttrib *attribList) const override;
private:
std::vector<eglw::EGLAttrib> mPlatformAttributes;
};
} // tcu
} // tcu
#endif // TCU_ANGLE_WIN32_NATIVE_DISPLAY_FACTORY_H_
#endif // TCU_ANGLE_WIN32_NATIVE_DISPLAY_FACTORY_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment