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

Unified Diff: base/test/run_all_base_unittests.cc

Issue 2169553002: Properly throw java exceptions from shouldOverrideUrlLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot compilation failure. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/android/test_system_message_handler_link_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/run_all_base_unittests.cc
diff --git a/chrome/tools/disable_outdated_build_detector/run_all_unittests.cc b/base/test/run_all_base_unittests.cc
similarity index 60%
copy from chrome/tools/disable_outdated_build_detector/run_all_unittests.cc
copy to base/test/run_all_base_unittests.cc
index da52310fb5443c451cfc438682940a277abfe3f7..30ea8c46f017d6680a810536190facc243684211 100644
--- a/chrome/tools/disable_outdated_build_detector/run_all_unittests.cc
+++ b/base/test/run_all_base_unittests.cc
@@ -7,7 +7,17 @@
#include "base/test/test_suite.h"
#include "build/build_config.h"
+#if defined(OS_ANDROID)
+#include "base/android/jni_android.h"
+#include "base/test/android/test_system_message_handler_link_android.h"
+#endif // defined(OS_ANDROID)
+
int main(int argc, char** argv) {
+#if defined(OS_ANDROID)
+ base::android::TestSystemMessageHandlerLink::RegisterJNI(
+ base::android::AttachCurrentThread());
+#endif // defined(OS_ANDROID)
+
base::TestSuite test_suite(argc, argv);
return base::LaunchUnitTests(
argc, argv,
« no previous file with comments | « base/test/android/test_system_message_handler_link_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698