Commit d29d61b2 authored by rtoy@google.com's avatar rtoy@google.com

Need to call RegisterJni for testing.

BUG=

Review URL: https://codereview.chromium.org/13949012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194530 0039d316-1c4b-4281-b951-d872f2087c98
parent 17d0ba46
...@@ -641,6 +641,13 @@ ...@@ -641,6 +641,13 @@
}, { }, {
'test_isolation_mode%': 'noop', 'test_isolation_mode%': 'noop',
}], }],
# Whether Android ARM build uses OpenMAX DL FFT. Default is
# yes. This will also enable WebAudio on Android ARM.
['OS=="android" and target_arch=="arm"', {
'use_openmax_dl_fft%': 1,
}, {
'use_openmax_dl_fft%': 0,
}],
], ],
# Set this to 1 to use the Google-internal file containing # Set this to 1 to use the Google-internal file containing
...@@ -676,9 +683,6 @@ ...@@ -676,9 +683,6 @@
'google_api_key%': '', 'google_api_key%': '',
'google_default_client_id%': '', 'google_default_client_id%': '',
'google_default_client_secret%': '', 'google_default_client_secret%': '',
# Whether Android uses OpenMAX DL FFT. Default is no.
'use_openmax_dl_fft%': 0,
}, },
# Copy conditionally-set variables out one scope. # Copy conditionally-set variables out one scope.
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
#include <cpu-features.h> #include <cpu-features.h>
#include "base/android/jni_android.h"
#include "base/logging.h" #include "base/logging.h"
#include "media/base/android/media_jni_registrar.h"
namespace media { namespace media {
...@@ -22,6 +24,9 @@ bool InitializeMediaLibrary(const base::FilePath& module_dir) { ...@@ -22,6 +24,9 @@ bool InitializeMediaLibrary(const base::FilePath& module_dir) {
} }
void InitializeMediaLibraryForTesting() { void InitializeMediaLibraryForTesting() {
// Register JNI bindings for android.
JNIEnv* env = base::android::AttachCurrentThread();
RegisterJni(env);
} }
bool IsMediaLibraryInitialized() { bool IsMediaLibraryInitialized() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment