Chromium Code Reviews| Index: content/public/test/test_utils.cc |
| diff --git a/content/public/test/test_utils.cc b/content/public/test/test_utils.cc |
| index 1a05f68073e92c0ef4e0cef854fce559f7e472db..76d42aac32b5e718c6bfb234959101747762ca54 100644 |
| --- a/content/public/test/test_utils.cc |
| +++ b/content/public/test/test_utils.cc |
| @@ -23,6 +23,10 @@ |
| #include "content/public/test/test_launcher.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| +#if defined(OS_ANDROID) |
| +#include "content/browser/android/browser_jni_registrar.h" |
| +#endif |
| + |
| namespace content { |
| namespace { |
| @@ -196,6 +200,13 @@ void IsolateAllSitesForTesting(base::CommandLine* command_line) { |
| command_line->AppendSwitch(switches::kSitePerProcess); |
| } |
| +#if defined(OS_ANDROID) |
| +// Registers content/browser JNI bindings necessary for some types of tests. |
| +bool RegisterJniForTesting(JNIEnv* env) { |
| + return content::android::RegisterBrowserJni(env); |
|
jam
2015/12/01 19:14:17
no content::
|
| +} |
| +#endif |
| + |
| MessageLoopRunner::MessageLoopRunner() |
| : loop_running_(false), |
| quit_closure_called_(false) { |