blob: ecab05df2eae9d2c46d2adf64a5e211c3023cb21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// 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.
#ifndef EXTENSIONS_COMMON_FILE_TEST_UTIL_H_
#define EXTENSIONS_COMMON_FILE_TEST_UTIL_H_
#include "base/strings/string_piece.h"
namespace base {
class FilePath;
}
namespace extensions {
namespace file_test_util {
// Writes |content| to |path|. Returns true if writing was successful,
// verifying the number of bytes written equals the size of |content|.
bool WriteFile(const base::FilePath& path, base::StringPiece content);
} // namespace file_test_util
} // namespace extensions
#endif // EXTENSIONS_COMMON_FILE_TEST_UTIL_H_
|