Index: webrtc/base/file_unittest.cc |
diff --git a/webrtc/base/file_unittest.cc b/webrtc/base/file_unittest.cc |
index 458b6da75f2642dfead3d72786579903ca57e84a..edf2b29127a5ede58a160afb94efcde5a36d9a5a 100644 |
--- a/webrtc/base/file_unittest.cc |
+++ b/webrtc/base/file_unittest.cc |
@@ -8,10 +8,6 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#include <sys/types.h> |
-#include <sys/stat.h> |
-#include <fcntl.h> |
- |
#include <limits> |
#include <memory> |
#include <string> |
@@ -32,14 +28,6 @@ |
namespace rtc { |
-void RemoveFile(const std::string& path) { |
-#if defined(WEBRTC_WIN) |
- ::DeleteFile(ToUtf16(path).c_str()); |
-#else |
- ::unlink(path.c_str()); |
-#endif |
-} |
- |
int LastError() { |
#if defined(WEBRTC_WIN) |
return ::GetLastError(); |
@@ -69,7 +57,7 @@ class FileTest : public ::testing::Test { |
ASSERT_FALSE(path_.empty()); |
} |
rtc::File OpenTempFile() { return rtc::File::Open(path_); } |
- void TearDown() { RemoveFile(path_); } |
+ void TearDown() { rtc::RemoveFile(path_); } |
}; |
TEST_F(FileTest, DoubleClose) { |