Files
angle/tests/compiler_tests/compiler_test_main.cpp
Zhenyao Mo 16a3eb3e9f 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=
[email protected]

Review URL: https://codereview.appspot.com/13568048
2013-09-25 16:32:40 -07:00

16 lines
404 B
C++

// Copyright (c) 2012 The Chromium 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"
#include "GLSLANG/ShaderLang.h"
int main(int argc, char** argv) {
testing::InitGoogleMock(&argc, argv);
ShInitialize();
int rt = RUN_ALL_TESTS();
ShFinalize();
return rt;
}