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

Side by Side Diff: media/base/run_all_unittests.cc

Issue 294403002: Enable ADTS demuxing by default in Media Source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « media/base/run_all_perftests.cc ('k') | media/filters/stream_parser_factory.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/bind.h"
6 #include "base/command_line.h"
7 #include "base/test/launcher/unit_test_launcher.h" 6 #include "base/test/launcher/unit_test_launcher.h"
8 #include "base/test/test_suite.h" 7 #include "base/test/test_suite.h"
9 #include "build/build_config.h" 8 #include "build/build_config.h"
10 #include "media/base/media.h" 9 #include "media/base/media.h"
11 #include "media/base/media_switches.h"
12 10
13 #if defined(OS_ANDROID) 11 #if defined(OS_ANDROID)
14 #include "base/android/jni_android.h" 12 #include "base/android/jni_android.h"
15 #include "media/base/android/media_jni_registrar.h" 13 #include "media/base/android/media_jni_registrar.h"
16 #include "ui/gl/android/gl_jni_registrar.h" 14 #include "ui/gl/android/gl_jni_registrar.h"
17 #endif 15 #endif
18 16
19 class TestSuiteNoAtExit : public base::TestSuite { 17 class TestSuiteNoAtExit : public base::TestSuite {
20 public: 18 public:
21 TestSuiteNoAtExit(int argc, char** argv) : TestSuite(argc, argv) {} 19 TestSuiteNoAtExit(int argc, char** argv) : TestSuite(argc, argv) {}
(...skipping 10 matching lines...) Expand all
32 // Register JNI bindings for android. 30 // Register JNI bindings for android.
33 JNIEnv* env = base::android::AttachCurrentThread(); 31 JNIEnv* env = base::android::AttachCurrentThread();
34 // Needed for surface texture support. 32 // Needed for surface texture support.
35 ui::gl::android::RegisterJni(env); 33 ui::gl::android::RegisterJni(env);
36 media::RegisterJni(env); 34 media::RegisterJni(env);
37 #endif 35 #endif
38 36
39 // Run this here instead of main() to ensure an AtExitManager is already 37 // Run this here instead of main() to ensure an AtExitManager is already
40 // present. 38 // present.
41 media::InitializeMediaLibraryForTesting(); 39 media::InitializeMediaLibraryForTesting();
42 CommandLine* cmd_line = CommandLine::ForCurrentProcess();
43 cmd_line->AppendSwitch(switches::kEnableADTSStreamParser);
44 } 40 }
45 41
46 int main(int argc, char** argv) { 42 int main(int argc, char** argv) {
47 TestSuiteNoAtExit test_suite(argc, argv); 43 TestSuiteNoAtExit test_suite(argc, argv);
48 44
49 return base::LaunchUnitTests( 45 return base::LaunchUnitTests(
50 argc, argv, base::Bind(&TestSuiteNoAtExit::Run, 46 argc, argv, base::Bind(&TestSuiteNoAtExit::Run,
51 base::Unretained(&test_suite))); 47 base::Unretained(&test_suite)));
52 } 48 }
OLDNEW
« no previous file with comments | « media/base/run_all_perftests.cc ('k') | media/filters/stream_parser_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698