mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 14:00:09 -10:00
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
16 lines
404 B
C++
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;
|
|
}
|