Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1347)

Unified Diff: testing/coverage_util_ios.cc

Issue 375033002: Flush gcda (code coverage) files manually in iOS Platform Test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Corrected ifdef guards Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/coverage_util_ios.h ('k') | testing/gtest.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « testing/coverage_util_ios.h ('k') | testing/gtest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698