Index: testing/coverage_util_ios.cc |
diff --git a/testing/coverage_util_ios.cc b/testing/coverage_util_ios.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..be97cca0ab15cc96f05f2f66c6b1e4493184688e |
--- /dev/null |
+++ b/testing/coverage_util_ios.cc |
@@ -0,0 +1,15 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+extern "C" void __gcov_flush(); |
+ |
+namespace coverage_util { |
+ |
+void FlushCoverageDataIfNecessary() { |
+#if defined(ENABLE_TEST_CODE_COVERAGE) && defined(OS_IOS) |
stuartmorgan
2014/07/09 18:24:11
No need for defined(OS_IOS) in an _ios file.
Eugene But (OOO till 7-30)
2014/07/09 18:29:48
Done.
|
+ __gcov_flush(); |
+#endif |
+} |
+ |
+} // namespace coverage_util |