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

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

Issue 76353002: Introduce a Gin class instead of using global functions to control gin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/memory/scoped_ptr.h"
8 #include "base/test/launcher/unit_test_launcher.h" 9 #include "base/test/launcher/unit_test_launcher.h"
9 #include "base/test/test_suite.h" 10 #include "base/test/test_suite.h"
10 #include "gin/initialize.h"
11 11
12 int main(int argc, char** argv) { 12 int main(int argc, char** argv) {
13 base::TestSuite test_suite(argc, argv); 13 base::TestSuite test_suite(argc, argv);
14 14
15 gin::Initialize();
16
17 return base::LaunchUnitTests( 15 return base::LaunchUnitTests(
18 argc, argv, base::Bind(&base::TestSuite::Run, 16 argc, argv, base::Bind(&base::TestSuite::Run,
19 base::Unretained(&test_suite))); 17 base::Unretained(&test_suite)));
20 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698