blob: 2294b5cd60e46ac4142f0ec8c8be1054c23b6de6 [file] [log] [blame]
[email protected]5b91fc52013-11-19 01:00:471// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "base/at_exit.h"
sergiyb2d09edb2014-12-02 19:10:046#include "base/bind.h"
[email protected]5b91fc52013-11-19 01:00:477#include "base/command_line.h"
sergiyb2d09edb2014-12-02 19:10:048#include "base/message_loop/message_loop.h"
9#include "base/test/launcher/unit_test_launcher.h"
10#include "base/test/test_suite.h"
[email protected]5b91fc52013-11-19 01:00:4711#include "testing/gmock/include/gmock/gmock.h"
12#include "testing/gtest/include/gtest/gtest.h"
[email protected]6a502252013-12-13 11:49:0913#include "third_party/angle/include/GLSLANG/ShaderLang.h"
[email protected]5b91fc52013-11-19 01:00:4714
sergiyb2d09edb2014-12-02 19:10:0415namespace {
16
17int RunHelper(base::TestSuite* test_suite) {
18 base::MessageLoopForIO message_loop;
19 return test_suite->Run();
20}
21
22} // namespace
23
[email protected]5b91fc52013-11-19 01:00:4724int main(int argc, char** argv) {
avi9ab037202014-12-22 23:49:5325 base::CommandLine::Init(argc, argv);
[email protected]5b91fc52013-11-19 01:00:4726 testing::InitGoogleMock(&argc, argv);
jmadilld16b2102017-01-03 18:32:4227 sh::Initialize();
sergiyb2d09edb2014-12-02 19:10:0428 base::TestSuite test_suite(argc, argv);
29 int rt = base::LaunchUnitTestsSerially(
30 argc,
31 argv,
32 base::Bind(&RunHelper, base::Unretained(&test_suite)));
jmadilld16b2102017-01-03 18:32:4233 sh::Finalize();
[email protected]5b91fc52013-11-19 01:00:4734 return rt;
35}