Index: base/test/test_support_ios.mm |
diff --git a/base/test/test_support_ios.mm b/base/test/test_support_ios.mm |
index 67fae06f1dfb96d757ae03e86daab2f429711644..3b31da610b4ed08acc452c96e4377c3052ca0164 100644 |
--- a/base/test/test_support_ios.mm |
+++ b/base/test/test_support_ios.mm |
@@ -11,6 +11,7 @@ |
#include "base/message_loop/message_loop.h" |
#include "base/message_loop/message_pump_default.h" |
#include "base/test/test_suite.h" |
+#include "testing/coverage_util_ios.h" |
// Springboard will kill any iOS app that fails to check in after launch within |
// a given time. Starting a UIApplication before invoking TestSuite::Run |
@@ -165,6 +166,8 @@ static char** g_argv; |
UIApplication* application = [UIApplication sharedApplication]; |
[application _terminateWithStatus:exitStatus]; |
+ coverage_util::FlushCoverageDataIfNecessary(); |
+ |
exit(exitStatus); |
} |