Roll chromium_revision a12e1e1..0cb2549 (326495:327252)
https://codereview.chromium.org/1051343002 adds a dependency
on Chromium's third_party/junit into base/ which affects our
Android tests that uses that code.
The precompiled JUnit 4.11 JAR file that is only by the
libjingle_peerconnection_java_unittest target on Linux has been
moved to third_party/junit-jar, since it collided with the expected
path for the JUnit dependency mentioned above.
It had to be kept since the Chromium JUnit is only possible to build
when OS==android.
This CL also brings in Mockito and Robolectric, which should be
useful for our Android tests.
Other relevant changes:
* src/buildtools: 3b302fe..15308f4
* src/third_party/libjpeg_turbo: 034e9a9..9e9058b
* src/third_party/libyuv: 32ad6e0..01db3d1
Details: https://chromium.googlesource.com/chromium/src/+/a12e1e1..0cb2549/DEPS
Clang version was not updated in this roll.
BUG=4499
R=phoglund@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/48239004
Cr-Commit-Position: refs/heads/master@{#9113}
diff --git a/.gitignore b/.gitignore
index e173e64..4a6d211 100644
--- a/.gitignore
+++ b/.gitignore
@@ -100,6 +100,7 @@
/third_party/jsoncpp
/third_party/jsr-305
/third_party/junit
+/third_party/junit-jar
/third_party/libc++
/third_party/libc++abi
/third_party/libevent
@@ -113,6 +114,7 @@
/third_party/libyuv
/third_party/llvm
/third_party/llvm-build
+/third_party/mockito
/third_party/modp_b64
/third_party/nss
/third_party/oauth2
@@ -121,6 +123,7 @@
/third_party/opus
/third_party/protobuf
/third_party/requests
+/third_party/robolectric
/third_party/sqlite
/third_party/syzygy
/third_party/usrsctp
diff --git a/DEPS b/DEPS
index 4c50f63..22c78e8 100644
--- a/DEPS
+++ b/DEPS
@@ -6,7 +6,7 @@
vars = {
'extra_gyp_flag': '-Dextra_gyp_flag=0',
'chromium_git': 'https://chromium.googlesource.com',
- 'chromium_revision': 'a12e1e10c4a910a4f8aa20e3ea8b611846f19ed9',
+ 'chromium_revision': '0cb254911980cce90b2e5c7207a37a27420e9ea7',
}
# NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
@@ -17,7 +17,7 @@
'src/third_party/gflags/src':
Var('chromium_git') + '/external/gflags/src@e7390f9185c75f8d902c05ed7d20bb94eb914d0c', # from svn revision 82
- 'src/third_party/junit':
+ 'src/third_party/junit-jar':
Var('chromium_git') + '/external/webrtc/deps/third_party/junit@f35596b476aa6e62fd3b3857b9942ddcd13ce35e', # from svn revision 3367
}
diff --git a/chromium/.gclient b/chromium/.gclient
index af8552a..573a455 100644
--- a/chromium/.gclient
+++ b/chromium/.gclient
@@ -12,7 +12,6 @@
'src/third_party/cld_2/src': None,
'src/third_party/ffmpeg': None,
'src/third_party/hunspell_dictionaries': None,
- 'src/third_party/junit/src': None,
'src/third_party/liblouis/src': None,
'src/third_party/pdfium': None,
'src/third_party/skia': None,
diff --git a/setup_links.py b/setup_links.py
index ed8b923..64366c1 100755
--- a/setup_links.py
+++ b/setup_links.py
@@ -83,10 +83,13 @@
'third_party/appurify-python',
'third_party/ashmem',
'third_party/jsr-305',
+ 'third_party/junit',
'third_party/libevent',
'third_party/libxml',
+ 'third_party/mockito',
'third_party/modp_b64',
'third_party/requests',
+ 'third_party/robolectric',
'tools/android',
'tools/grit',
'tools/relocation_packer'
diff --git a/sync_chromium.py b/sync_chromium.py
index 08b1042..3f36652 100755
--- a/sync_chromium.py
+++ b/sync_chromium.py
@@ -30,7 +30,7 @@
# Bump this whenever the algorithm changes and you need bots/devs to re-sync,
# ignoring the .last_sync_chromium file
-SCRIPT_VERSION = 4
+SCRIPT_VERSION = 5
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
CHROMIUM_NO_HISTORY = 'CHROMIUM_NO_HISTORY'
diff --git a/talk/libjingle_tests.gyp b/talk/libjingle_tests.gyp
index 7183972..246fa3b 100755
--- a/talk/libjingle_tests.gyp
+++ b/talk/libjingle_tests.gyp
@@ -250,10 +250,16 @@
],
'conditions': [
['OS=="linux"', {
+ 'variables': {
+ 'junit_jar': '<(DEPTH)/third_party/junit-jar/junit-4.11.jar',
+ },
'targets': [
{
'target_name': 'libjingle_peerconnection_test_jar',
'type': 'none',
+ 'dependencies': [
+ 'libjingle.gyp:libjingle_peerconnection_jar',
+ ],
'actions': [
{
'variables': {
@@ -269,7 +275,7 @@
'<@(java_files)',
'<(PRODUCT_DIR)/libjingle_peerconnection.jar',
'<(PRODUCT_DIR)/lib/libjingle_peerconnection_so.so',
- '<(DEPTH)/third_party/junit/junit-4.11.jar',
+ '<(junit_jar)',
],
'outputs': [
'<(PRODUCT_DIR)/libjingle_peerconnection_test.jar',
@@ -277,7 +283,7 @@
'action': [
'build/build_jar.sh', '<(java_home)', '<@(_outputs)',
'<(INTERMEDIATE_DIR)',
- '<(java_src_dir):<(PRODUCT_DIR)/libjingle_peerconnection.jar:<(DEPTH)/third_party/junit/junit-4.11.jar',
+ '<(java_src_dir):<(PRODUCT_DIR)/libjingle_peerconnection.jar:<(junit_jar)',
'<@(java_files)'
],
},
@@ -292,7 +298,7 @@
'inputs': [
'app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh',
'<(PRODUCT_DIR)/libjingle_peerconnection_test_jar',
- '<(DEPTH)/third_party/junit/junit-4.11.jar',
+ '<(junit_jar)',
],
'outputs': [
'<(PRODUCT_DIR)/libjingle_peerconnection_java_unittest',
@@ -303,7 +309,7 @@
'sed -e "s@GYP_JAVA_HOME@<(java_home)@" '
'< app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh '
'> <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && '
- 'cp <(DEPTH)/third_party/junit/junit-4.11.jar <(PRODUCT_DIR) && '
+ 'cp <(junit_jar) <(PRODUCT_DIR) && '
'chmod u+x <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest'
],
},