blob: 2639e3f7ba4b6c366bc341083a34a7dabb5b5166 [file] [log] [blame]
// Copyright 2019 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.
#import <Foundation/Foundation.h>
@interface CoverageUtils : NSObject
// On first call in a debug build with IOS_ENABLE_COVERAGE enabled, will set the
// filename of the coverage file. Will do nothing on subsequent calls, but is
// safe to call.
+ (void)configureCoverageReportPath;
// Resets coverage counter and already-dumped flag so that incremental coverage
// data can be dumped to the same raw coverage data file. This should be called
// only once in between two write coverage data calls.
+ (void)resetCoverageProfileCounters;
// Writes the raw coverage data to previously configured report path.
+ (void)writeClangCoverageProfile;