Edit

kc3-lang/angle/tests/angle_end2end_tests_main.cpp

Branch :

  • Show log

    Commit

  • Author : Kenneth Russell
    Date : 2014-12-18 13:55:08
    Hash : 2609bf4c
    Message : Refactored test targets into angle_unittests and angle_end2end_tests. angle_unittests subsumes the previous: angle_compiler_tests angle_preprocessor_tests and will subsume angle_implementation_unit_tests in a follow-on CL. angle_end2end_tests subsumes the previous: angle_tests angle_standalone_tests angle_implementation_unit_tests The bulk of these two targets have been factored into their own .gypi files, so that a different main.cpp can be trivially plugged in for the gtest harness. This refactoring has been tested both in ANGLE standalone builds, and builds within Chromium. BUG=chromium:435726 Change-Id: I231a3c1989c17e188cc469dcf80fe78b052afe78 Reviewed-on: https://chromium-review.googlesource.com/236681 Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Kenneth Russell <kbr@chromium.org>

  • tests/angle_end2end_tests_main.cpp
  • //
    // Copyright (c) 2013 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.
    //
    
    #include "gtest/gtest.h"
    #include "ANGLETest.h"
    
    int main(int argc, char** argv)
    {
        testing::InitGoogleTest(&argc, argv);
        testing::AddGlobalTestEnvironment(new ANGLETestEnvironment());
        int rt = RUN_ALL_TESTS();
        return rt;
    }