EMMA Coverage Report (generated Fri Aug 23 16:39:17 PDT 2013)
[all classes][org.chromium.base]

COVERAGE SUMMARY FOR SOURCE FILE [ImportantFileWriterAndroid.java]

nameclass, %method, %block, %line, %
ImportantFileWriterAndroid.java100% (1/1)50%  (1/2)57%  (4/7)50%  (1/2)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ImportantFileWriterAndroid100% (1/1)50%  (1/2)57%  (4/7)50%  (1/2)
ImportantFileWriterAndroid (): void 0%   (0/1)0%   (0/3)0%   (0/1)
writeFileAtomically (String, byte []): boolean 100% (1/1)100% (4/4)100% (1/1)

1// Copyright (c) 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4 
5package org.chromium.base;
6 
7/**
8 * This class provides an interface to the native class for writing
9 * important data files without risking data loss.
10 */
11@JNINamespace("base::android")
12public class ImportantFileWriterAndroid {
13 
14    /**
15     * Write a binary file atomically.
16     *
17     * This either writes all the data or leaves the file unchanged.
18     *
19     * @param fileName The complete path of the file to be written
20     * @param data The data to be written to the file
21     * @return true if the data was written to the file, false if not.
22     */
23    public static boolean writeFileAtomically(String fileName, byte[] data) {
24        return nativeWriteFileAtomically(fileName, data);
25    }
26 
27    private static native boolean nativeWriteFileAtomically(
28            String fileName, byte[] data);
29}

[all classes][org.chromium.base]
EMMA 2.0.5312 (C) Vladimir Roubtsov