[Chromoting] (Re-)Enable AppRemoting sample apps by default in all.gyp.
[chromium-blink-merge.git] / gpu / angle_end2end_tests_main.cc
blob24bd9b5ebbc484b5a6409a79dd96b65c9d3b4964
1 // 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.
5 #include "base/at_exit.h"
6 #include "base/bind.h"
7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h"
9 #include "base/test/launcher/unit_test_launcher.h"
10 #include "base/test/test_suite.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "third_party/angle/tests/angle_tests/ANGLETest.h"
15 namespace {
17 int RunHelper(base::TestSuite* test_suite) {
18 base::MessageLoop message_loop;
19 return test_suite->Run();
22 } // namespace
24 int main(int argc, char** argv) {
25 base::CommandLine::Init(argc, argv);
26 testing::InitGoogleMock(&argc, argv);
27 testing::AddGlobalTestEnvironment(new ANGLETestEnvironment());
28 base::TestSuite test_suite(argc, argv);
29 int rt = base::LaunchUnitTestsSerially(
30 argc,
31 argv,
32 base::Bind(&RunHelper, base::Unretained(&test_suite)));
33 return rt;