OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef TESTING_COVERAGE_UTIL_IOS_H_ | 5 #ifndef TESTING_COVERAGE_UTIL_IOS_H_ |
6 #define TESTING_COVERAGE_UTIL_IOS_H_ | 6 #define TESTING_COVERAGE_UTIL_IOS_H_ |
7 | 7 |
8 namespace coverage_util { | 8 namespace coverage_util { |
9 | 9 |
10 // Flushes .gcda coverage files if ENABLE_TEST_CODE_COVERAGE is defined. iOS 7 | 10 // In debug builds, if ENABLE_TEST_CODE_COVERAGE is defined, sets the filename |
lpromero
2017/03/31 11:22:06
Sylvain, you told me GN was against such env varia
| |
11 // does not call any code at the "end" of an app so flushing should be | 11 // of the coverage file. Otherwise, it does nothing. |
12 // performed manually. | 12 void SetupIfNecessary(); |
Eugene But (OOO till 7-30)
2017/03/31 18:27:51
Should this be SetUpForDebugBuild()
lpromero
2017/03/31 20:35:20
Well, there would probably be another condition: E
Eugene But (OOO till 7-30)
2017/03/31 20:42:12
Nope, I guess IfNecessary is fine. Sorry my previo
| |
13 void FlushCoverageDataIfNecessary(); | |
14 | 13 |
15 } // namespace coverage_util | 14 } // namespace coverage_util |
16 | 15 |
17 #endif // TESTING_COVERAGE_UTIL_IOS_H_ | 16 #endif // TESTING_COVERAGE_UTIL_IOS_H_ |
OLD | NEW |