Index: mojo/mojo.gyp |
diff --git a/mojo/mojo.gyp b/mojo/mojo.gyp |
index 5cd9e580a9d68f487a3c59c3cf741225b598ea09..c099b5d02b8f7bfc6bb45340ab3c0863ca442466 100644 |
--- a/mojo/mojo.gyp |
+++ b/mojo/mojo.gyp |
@@ -649,6 +649,13 @@ |
'resource_dir': '<(DEPTH)/mojo/android/javatests/apk', |
'native_lib_target': 'libmojo_java_unittest', |
'is_test_apk': 1, |
+ # Given that this apk tests itself, it needs to bring emma with it |
+ # when instrumented. |
+ 'conditions': [ |
+ ['emma_coverage != 0', { |
+ 'emma_instrument': 1, |
+ }], |
+ ], |
}, |
'includes': [ '../build/java_apk.gypi' ], |
}, |