summaryrefslogtreecommitdiffstats
path: root/testing/coverage_util_ios.h
diff options
context:
space:
mode:
authoreugenebut@chromium.org <eugenebut@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-10 00:41:02 +0000
committereugenebut@chromium.org <eugenebut@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-10 00:41:02 +0000
commit9b00523e53559b874d1de527131baec833fb5489 (patch)
tree8fa97c71af5a2273c7016052c43479d932b1e276 /testing/coverage_util_ios.h
parent69e4cb03edb7e8797bb243071256c32a8cae59b3 (diff)
downloadchromium_src-9b00523e53559b874d1de527131baec833fb5489.zip
chromium_src-9b00523e53559b874d1de527131baec833fb5489.tar.gz
chromium_src-9b00523e53559b874d1de527131baec833fb5489.tar.bz2
Flush gcda (code coverage) files manually in iOS Platform Test.
iOS 7 does not call any code at the "end" of an app so flushing should be performed manually. BUG=392265 Review URL: https://codereview.chromium.org/375033002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing/coverage_util_ios.h')
-rw-r--r--testing/coverage_util_ios.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/coverage_util_ios.h b/testing/coverage_util_ios.h
new file mode 100644
index 0000000..702811a
--- /dev/null
+++ b/testing/coverage_util_ios.h
@@ -0,0 +1,17 @@
+// 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.
+
+#ifndef TESTING_COVERAGE_UTIL_IOS_H_
+#define TESTING_COVERAGE_UTIL_IOS_H_
+
+namespace coverage_util {
+
+// Flushes .gcda coverage files if ENABLE_TEST_CODE_COVERAGE is defined. iOS 7
+// does not call any code at the "end" of an app so flushing should be
+// performed manually.
+void FlushCoverageDataIfNecessary();
+
+} // namespace coverage_util
+
+#endif // TESTING_COVERAGE_UTIL_IOS_H_