Edit

kc3-lang/angle/tests/preprocessor_tests/preprocessor_test_main.cpp

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2013-10-08 10:52:52
    Hash : 8622e554
    Message : Merge 16a3eb3e9fdee83ab9ed15769ec629eab4bc4174 from master. Fix compiler test initialization issues. We should call ShInitialize() / ShFinalize() once per process, so moving them out of individual test's Setup() / Shutdown() to the test main(). BUG= R=alokp@chromium.org Review URL: https://codereview.appspot.com/13568048

  • tests/preprocessor_tests/preprocessor_test_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 "gmock/gmock.h"
    #include "gtest/gtest.h"
    
    int main(int argc, char** argv)
    {
        testing::InitGoogleMock(&argc, argv);
        int rt = RUN_ALL_TESTS();
        return rt;
    }