Edit

kc3-lang/angle/tests/deqp_tests/deqp_tests.h

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2014-05-16 10:37:47
    Hash : 5df9f523
    Message : Automate the DEQP tests by wrapping them in the gtest suite. BUG=angle:497 Change-Id: If0a72c053bccccc4369ec78dd70173bbadb1be7b Reviewed-on: https://chromium-review.googlesource.com/200044 Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>

  • tests/deqp_tests/deqp_tests.h
  • //
    // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    #ifndef DEQP_TESTS_DEQP_TESTS_H_
    #define DEQP_TESTS_DEQP_TESTS_H_
    
    #include "gtest/gtest.h"
    
    #include <EGL/egl.h>
    
    #include <string>
    
    struct DEQPConfig
    {
        size_t width;
        size_t height;
        bool hidden;
        EGLNativeDisplayType displayType;
    };
    
    void SetCurrentConfig(const DEQPConfig& config);
    const DEQPConfig& GetCurrentConfig();
    
    void RunDEQPTest(const std::string &testPath, const DEQPConfig& config);
    
    #endif // DEQP_TESTS_DEQP_TESTS_H_