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

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 include 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/ui/ozone/common/gpu/ozone_gpu_message_generator.h b/testing/coverage_util_ios.cc
similarity index 57%
copy from ui/ozone/common/gpu/ozone_gpu_message_generator.h
copy to testing/coverage_util_ios.cc
index 3b35c0e7bcedef014f02657b6b52c7d2de512f00..15ac1b4a0a89a99b700d6c2e24624db753805602 100644
--- a/ui/ozone/common/gpu/ozone_gpu_message_generator.h
+++ b/testing/coverage_util_ios.cc
@@ -2,6 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Multiply-included file, hence no include guard.
+extern "C" void __gcov_flush();
-#include "ui/ozone/common/gpu/ozone_gpu_messages.h"
+namespace coverage_util {
+
+void FlushCoverageDataIfNecessary() {
+#if defined(ENABLE_TEST_CODE_COVERAGE)
+ __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