Index: base/test/test_suite.cc |
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc |
index 0cca8fa25ba9093f87e6af7ebfdb66cc583acdcd..d22a3ade16ae1d8c2b148fb20e5c266d1df447f5 100644 |
--- a/base/test/test_suite.cc |
+++ b/base/test/test_suite.cc |
@@ -25,9 +25,11 @@ |
#if defined(OS_MACOSX) |
#include "base/mac/scoped_nsautorelease_pool.h" |
-#if !defined(OS_IOS) |
+#if defined(OS_IOS) |
+#include "base/test/test_listener_ios.h" |
+#else // !OS_IOS |
stuartmorgan
2012/07/12 10:59:23
Two spaces before //
leng
2012/07/12 11:17:31
N/A
|
#include "base/test/mock_chrome_application_mac.h" |
-#endif // !OS_IOS |
+#endif // OS_IOS |
stuartmorgan
2012/07/12 10:59:23
I hate this not matching the comment on the sectio
leng
2012/07/12 11:17:31
I find it more readable to not have a comment on t
|
#endif // OS_MACOSX |
#if defined(OS_ANDROID) |
@@ -234,6 +236,9 @@ int TestSuite::Run() { |
// Check to see if we are being run as a client process. |
if (!client_func.empty()) |
return multi_process_function_list::InvokeChildProcessTest(client_func); |
+#if defined(OS_IOS) |
+ base::test_listener_ios::RegisterTestEndListener(); |
+#endif |
int result = RUN_ALL_TESTS(); |
// If there are failed tests, see if we should ignore the failures. |