Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Side by Side Diff: gpu/angle_deqp_tests_main.cc

Issue 2542653002: Run the dEQP GLES 3.1 tests on Windows and Linux NVIDIA OpenGL. (Closed)
Patch Set: Forward args to the dEQP runner. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/test/gpu/generate_buildbot_json.py ('k') | testing/buildbot/chromium.gpu.fyi.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/test/launcher/unit_test_launcher.h" 9 #include "base/test/launcher/unit_test_launcher.h"
10 #include "base/test/test_suite.h" 10 #include "base/test/test_suite.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace { 13 namespace {
14 14
15 int RunHelper(base::TestSuite* test_suite) { 15 int RunHelper(base::TestSuite* test_suite) {
16 base::MessageLoop message_loop; 16 base::MessageLoop message_loop;
17 return test_suite->Run(); 17 return test_suite->Run();
18 } 18 }
19 19
20 } // namespace 20 } // namespace
21 21
22 // Defined in angle_deqp_gtest.cpp. Declared here so we don't need to make a
23 // header that we import in Chromium.
24 namespace angle {
25 void InitTestHarness(int* argc, char** argv);
26 }
27
22 int main(int argc, char** argv) { 28 int main(int argc, char** argv) {
29 angle::InitTestHarness(&argc, argv);
23 base::CommandLine::Init(argc, argv); 30 base::CommandLine::Init(argc, argv);
24 base::TestSuite test_suite(argc, argv); 31 base::TestSuite test_suite(argc, argv);
25 int rt = base::LaunchUnitTestsSerially( 32 int rt = base::LaunchUnitTestsSerially(
26 argc, 33 argc,
27 argv, 34 argv,
28 base::Bind(&RunHelper, base::Unretained(&test_suite))); 35 base::Bind(&RunHelper, base::Unretained(&test_suite)));
29 return rt; 36 return rt;
30 } 37 }
OLDNEW
« no previous file with comments | « content/test/gpu/generate_buildbot_json.py ('k') | testing/buildbot/chromium.gpu.fyi.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698