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

Side by Side Diff: gpu/angle_unittest_main.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('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 2013 The Chromium Authors. All rights reserved. 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 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/command_line.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"
7 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
8 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
9 #include "third_party/angle/include/GLSLANG/ShaderLang.h" 13 #include "third_party/angle/include/GLSLANG/ShaderLang.h"
10 14
15 namespace {
16
17 int RunHelper(base::TestSuite* test_suite) {
18 base::MessageLoopForIO message_loop;
19 return test_suite->Run();
20 }
21
22 } // namespace
23
11 int main(int argc, char** argv) { 24 int main(int argc, char** argv) {
12 // On Android, AtExitManager is created in
13 // testing/android/native_test_wrapper.cc before main() is called.
14 // The same thing is also done in base/test/test_suite.cc
15 #if !defined(OS_ANDROID)
16 base::AtExitManager exit_manager;
17 #endif
18 CommandLine::Init(argc, argv); 25 CommandLine::Init(argc, argv);
19 testing::InitGoogleMock(&argc, argv); 26 testing::InitGoogleMock(&argc, argv);
20 ShInitialize(); 27 ShInitialize();
21 int rt = RUN_ALL_TESTS(); 28 base::TestSuite test_suite(argc, argv);
29 int rt = base::LaunchUnitTestsSerially(
30 argc,
31 argv,
32 base::Bind(&RunHelper, base::Unretained(&test_suite)));
22 ShFinalize(); 33 ShFinalize();
23 return rt; 34 return rt;
24 } 35 }
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698