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

Side by Side Diff: content/test/run_all_gl_tests.cc

Issue 1867873002: Move unittests in content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 8 months 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') | gpu/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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/command_line.h"
6 #include "base/message_loop/message_loop.h"
7 #include "base/test/launcher/unit_test_launcher.h"
8 #include "build/build_config.h"
9 #include "content/public/test/unittest_test_suite.h"
10 #include "content/test/content_test_suite.h"
11
12 #if defined(OS_MACOSX)
13 #include "base/mac/scoped_nsautorelease_pool.h"
14 #endif
15
16 namespace {
17
18 int RunHelper(base::TestSuite* test_suite) {
19 content::UnitTestTestSuite runner(test_suite);
20 base::MessageLoopForIO message_loop;
21 return runner.Run();
22 }
23
24 } // namespace
25
26 // These tests needs to run against a proper GL environment, so we
27 // need to set it up before we can run the tests.
28 int main(int argc, char** argv) {
29 base::CommandLine::Init(argc, argv);
30 base::TestSuite* suite = new content::ContentTestSuite(argc, argv);
31 #if defined(OS_MACOSX)
32 base::mac::ScopedNSAutoreleasePool pool;
33 #endif
34
35 return base::LaunchUnitTestsSerially(
36 argc,
37 argv,
38 base::Bind(&RunHelper, base::Unretained(suite)));
39 }
OLDNEW
« no previous file with comments | « content/test/gpu/generate_buildbot_json.py ('k') | gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698