diff options
author | Wei Wang <wvw@google.com> | 2017-11-09 21:45:29 -0800 |
---|---|---|
committer | Wei Wang <wvw@google.com> | 2017-11-10 17:32:25 +0000 |
commit | 254102d858942393482589b8f1e6102b33797b58 (patch) | |
tree | 406b3d2a0049994d9b496770f7860536f48b566c /cmds/incident_helper | |
parent | 5bb66e73ec479a34ee58f06feccf1d7db4677f3e (diff) |
Remove unnecessary parameter WriteStringToFile
By default, WriteStringToFile will not follow link, the 'false'
parameter is unnecessary.
Test: build
Change-Id: Ied6dcbf2a85533108dc2f6d71a4571b44684e800
Diffstat (limited to 'cmds/incident_helper')
-rw-r--r-- | cmds/incident_helper/tests/ih_util_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmds/incident_helper/tests/ih_util_test.cpp b/cmds/incident_helper/tests/ih_util_test.cpp index da88ee3a0120..3cef6b378ee1 100644 --- a/cmds/incident_helper/tests/ih_util_test.cpp +++ b/cmds/incident_helper/tests/ih_util_test.cpp @@ -65,7 +65,7 @@ TEST(IhUtilTest, ParseRecord) { TEST(IhUtilTest, Reader) { TemporaryFile tf; ASSERT_NE(tf.fd, -1); - ASSERT_TRUE(WriteStringToFile("test string\nsecond\nooo\n", tf.path, false)); + ASSERT_TRUE(WriteStringToFile("test string\nsecond\nooo\n", tf.path)); Reader r(tf.fd); string line; @@ -82,7 +82,7 @@ TEST(IhUtilTest, Reader) { TEST(IhUtilTest, ReaderSmallBufSize) { TemporaryFile tf; ASSERT_NE(tf.fd, -1); - ASSERT_TRUE(WriteStringToFile("test string\nsecond\nooiecccojreo", tf.path, false)); + ASSERT_TRUE(WriteStringToFile("test string\nsecond\nooiecccojreo", tf.path)); Reader r(tf.fd, 5); string line; @@ -99,7 +99,7 @@ TEST(IhUtilTest, ReaderSmallBufSize) { TEST(IhUtilTest, ReaderEmpty) { TemporaryFile tf; ASSERT_NE(tf.fd, -1); - ASSERT_TRUE(WriteStringToFile("", tf.path, false)); + ASSERT_TRUE(WriteStringToFile("", tf.path)); Reader r(tf.fd); string line; @@ -112,7 +112,7 @@ TEST(IhUtilTest, ReaderEmpty) { TEST(IhUtilTest, ReaderMultipleEmptyLines) { TemporaryFile tf; ASSERT_NE(tf.fd, -1); - ASSERT_TRUE(WriteStringToFile("\n\n", tf.path, false)); + ASSERT_TRUE(WriteStringToFile("\n\n", tf.path)); Reader r(tf.fd); string line; |