| Index: webrtc/base/file_unittest.cc
|
| diff --git a/webrtc/base/file_unittest.cc b/webrtc/base/file_unittest.cc
|
| index aa787c14c59138d478f88295909d284133241f81..d8800a55f438f3747c035e7410aeb25d0491a453 100644
|
| --- a/webrtc/base/file_unittest.cc
|
| +++ b/webrtc/base/file_unittest.cc
|
| @@ -163,4 +163,30 @@ TEST_F(FileTest, RandomAccessReadWrite) {
|
| EXPECT_TRUE(VerifyBuffer(out, 2, 0));
|
| }
|
|
|
| +TEST_F(FileTest, OpenFromPathname) {
|
| + {
|
| + File file = File::Open(Pathname(path_));
|
| + ASSERT_TRUE(file.IsOpen()) << "Error: " << LastError();
|
| + }
|
| +
|
| + {
|
| + Pathname path(path_);
|
| + File file = File::Open(path);
|
| + ASSERT_TRUE(file.IsOpen()) << "Error: " << LastError();
|
| + }
|
| +}
|
| +
|
| +TEST_F(FileTest, CreateFromPathname) {
|
| + {
|
| + File file = File::Create(Pathname(path_));
|
| + ASSERT_TRUE(file.IsOpen()) << "Error: " << LastError();
|
| + }
|
| +
|
| + {
|
| + Pathname path(path_);
|
| + File file = File::Create(path);
|
| + ASSERT_TRUE(file.IsOpen()) << "Error: " << LastError();
|
| + }
|
| +}
|
| +
|
| } // namespace rtc
|
|
|