blob: a49b537e4145d919ac8a4781da62437375ee2efe [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
sergiyb2d09edb2014-12-02 19:10:045#include "base/bind.h"
[email protected]5b91fc52013-11-19 01:00:476#include "base/command_line.h"
sergiyb2d09edb2014-12-02 19:10:047#include "base/message_loop/message_loop.h"
8#include "base/test/launcher/unit_test_launcher.h"
9#include "base/test/test_suite.h"
[email protected]5b91fc52013-11-19 01:00:4710#include "testing/gmock/include/gmock/gmock.h"
[email protected]6a502252013-12-13 11:49:0911#include "third_party/angle/include/GLSLANG/ShaderLang.h"
[email protected]5b91fc52013-11-19 01:00:4712
sergiyb2d09edb2014-12-02 19:10:0413namespace {
14
15int RunHelper(base::TestSuite* test_suite) {
16 base::MessageLoopForIO message_loop;
17 return test_suite->Run();
18}
19
20} // namespace
21
[email protected]5b91fc52013-11-19 01:00:4722int main(int argc, char** argv) {
avi9ab037202014-12-22 23:49:5323 base::CommandLine::Init(argc, argv);
[email protected]5b91fc52013-11-19 01:00:4724 testing::InitGoogleMock(&argc, argv);
jmadilld16b2102017-01-03 18:32:4225 sh::Initialize();
sergiyb2d09edb2014-12-02 19:10:0426 base::TestSuite test_suite(argc, argv);
27 int rt = base::LaunchUnitTestsSerially(
Corentin Wallez0b71452b2018-10-30 17:35:0028 argc, argv, base::BindOnce(&RunHelper, base::Unretained(&test_suite)));
jmadilld16b2102017-01-03 18:32:4229 sh::Finalize();
[email protected]5b91fc52013-11-19 01:00:4730 return rt;
31}