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

Side by Side Diff: media/base/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 | « jingle/run_all_unittests.cc ('k') | net/test/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/command_line.h" 6 #include "base/command_line.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 "build/build_config.h" 9 #include "build/build_config.h"
8 #include "media/base/media.h" 10 #include "media/base/media.h"
9 #include "media/base/media_switches.h" 11 #include "media/base/media_switches.h"
10 12
11 #if defined(OS_ANDROID) 13 #if defined(OS_ANDROID)
12 #include "base/android/jni_android.h" 14 #include "base/android/jni_android.h"
13 #include "media/base/android/media_jni_registrar.h" 15 #include "media/base/android/media_jni_registrar.h"
14 #include "ui/gl/android/gl_jni_registrar.h" 16 #include "ui/gl/android/gl_jni_registrar.h"
15 #endif 17 #endif
16 18
(...skipping 16 matching lines...) Expand all
33 ui::gl::android::RegisterJni(env); 35 ui::gl::android::RegisterJni(env);
34 media::RegisterJni(env); 36 media::RegisterJni(env);
35 #endif 37 #endif
36 38
37 // Run this here instead of main() to ensure an AtExitManager is already 39 // Run this here instead of main() to ensure an AtExitManager is already
38 // present. 40 // present.
39 media::InitializeMediaLibraryForTesting(); 41 media::InitializeMediaLibraryForTesting();
40 } 42 }
41 43
42 int main(int argc, char** argv) { 44 int main(int argc, char** argv) {
43 return TestSuiteNoAtExit(argc, argv).Run(); 45 TestSuiteNoAtExit test_suite(argc, argv);
46
47 return base::LaunchUnitTests(
48 argc, argv, base::Bind(&TestSuiteNoAtExit::Run,
49 base::Unretained(&test_suite)));
44 } 50 }
OLDNEW
« no previous file with comments | « jingle/run_all_unittests.cc ('k') | net/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698