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

Unified Diff: testing/coverage_util_ios.cc

Issue 2648263002: Code coverage with llvm-cov (Closed)
Patch Set: Some changes Created 3 years, 9 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') | no next file » | 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
index d888a208ce150be8e422e12025ce7e18d6cbe15f..f0c521efcee76ca1f1bcaaf8322dce5eeb5145bc 100644
--- a/testing/coverage_util_ios.cc
+++ b/testing/coverage_util_ios.cc
@@ -2,14 +2,16 @@
// 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(void);
+extern "C" void __llvm_profile_set_filename(const char* name);
namespace coverage_util {
-void FlushCoverageDataIfNecessary() {
-#if !defined(NDEBUG) && defined(ENABLE_TEST_CODE_COVERAGE)
- __gcov_flush();
-#endif
+void SetupCodeCoverageIfNecessary(const char* name) {
+//#if !defined(NDEBUG) && defined(ENABLE_TEST_CODE_COVERAGE)
+ // For documentation, see:
+ // http://clang.llvm.org/docs/SourceBasedCodeCoverage.html
+ __llvm_profile_set_filename(name);
+//#endif
}
} // namespace coverage_util
« no previous file with comments | « testing/coverage_util_ios.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698