mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-18 02:56:33 +00:00
CopyFile: add a C++ API
Having to swizzle to C strings all the time is a bit annoying. Change-Id: I0b80877706e32e873e567685f6b471745da70311 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2396557 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
@@ -521,7 +521,7 @@ TEST(MinidumpWriterTest, DeletedBinary) {
|
||||
// Copy binary to a temp file.
|
||||
AutoTempDir temp_dir;
|
||||
string binpath = temp_dir.path() + "/linux-dumper-unittest-helper";
|
||||
ASSERT_TRUE(CopyFile(helper_path.c_str(), binpath.c_str()))
|
||||
ASSERT_TRUE(CopyFile(helper_path, binpath))
|
||||
<< "Failed to copy " << helper_path << " to " << binpath;
|
||||
ASSERT_EQ(0, chmod(binpath.c_str(), 0755));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user