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

Side by Side Diff: cc/test/run_all_unittests.cc

Issue 23442019: Convert most run_all_unittests.cc files to use new unit test launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/app/run_all_unittests.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h"
5 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
6 #include "base/test/test_suite.h" 7 #include "base/test/test_suite.h"
8 #include "base/test/unit_test_launcher.h"
7 #include "cc/test/cc_test_suite.h" 9 #include "cc/test/cc_test_suite.h"
8 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
9 11
10 int main(int argc, char** argv) { 12 int main(int argc, char** argv) {
11 ::testing::InitGoogleMock(&argc, argv); 13 ::testing::InitGoogleMock(&argc, argv);
12 cc::CCTestSuite test_suite(argc, argv); 14 cc::CCTestSuite test_suite(argc, argv);
13 int result = test_suite.Run();
14 15
15 return result; 16 return base::LaunchUnitTests(
17 argc, argv, base::Bind(&cc::CCTestSuite::Run,
18 base::Unretained(&test_suite)));
16 } 19 }
OLDNEW
« no previous file with comments | « no previous file | chrome/app/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698