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

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

Issue 23014009: media: Opus support for WebM in Media Source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and addressing comments 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
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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/test/test_suite.h" 6 #include "base/test/test_suite.h"
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "media/base/media.h" 8 #include "media/base/media.h"
9 #include "media/base/media_switches.h" 9 #include "media/base/media_switches.h"
10 10
(...skipping 19 matching lines...) Expand all
30 // Register JNI bindings for android. 30 // Register JNI bindings for android.
31 JNIEnv* env = base::android::AttachCurrentThread(); 31 JNIEnv* env = base::android::AttachCurrentThread();
32 // Needed for surface texture support. 32 // Needed for surface texture support.
33 ui::gl::android::RegisterJni(env); 33 ui::gl::android::RegisterJni(env);
34 media::RegisterJni(env); 34 media::RegisterJni(env);
35 #endif 35 #endif
36 36
37 // 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
38 // present. 38 // present.
39 media::InitializeMediaLibraryForTesting(); 39 media::InitializeMediaLibraryForTesting();
40
41 // Enable Opus support for all media tests.
42 // TODO(vigneshv): Remove this once the Opus flag is removed or negated.
43 CommandLine* cmd_line = CommandLine::ForCurrentProcess();
44 cmd_line->AppendSwitch(switches::kEnableOpusPlayback);
40 } 45 }
41 46
42 int main(int argc, char** argv) { 47 int main(int argc, char** argv) {
43 return TestSuiteNoAtExit(argc, argv).Run(); 48 return TestSuiteNoAtExit(argc, argv).Run();
44 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698