Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Unified Diff: webrtc/rtc_base/logging_unittest.cc

Issue 2995413002: Delete Filesystem::GetTemporaryFolder. (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/rtc_base/fileutils_unittest.cc ('k') | webrtc/rtc_base/optionsfile_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/logging_unittest.cc
diff --git a/webrtc/rtc_base/logging_unittest.cc b/webrtc/rtc_base/logging_unittest.cc
index c80607772056bd975d7b31e4985ca2d845a6eff7..28538bbb51b392e97ccdc4990caf611586417f31 100644
--- a/webrtc/rtc_base/logging_unittest.cc
+++ b/webrtc/rtc_base/logging_unittest.cc
@@ -12,9 +12,9 @@
#include "webrtc/rtc_base/gunit.h"
#include "webrtc/rtc_base/logging.h"
#include "webrtc/rtc_base/nullsocketserver.h"
-#include "webrtc/rtc_base/pathutils.h"
#include "webrtc/rtc_base/stream.h"
#include "webrtc/rtc_base/thread.h"
+#include "webrtc/test/testsupport/fileutils.h"
namespace rtc {
@@ -139,12 +139,11 @@ TEST(LogTest, WallClockStartTime) {
#endif
TEST(LogTest, MAYBE_Perf) {
- Pathname path;
- EXPECT_TRUE(Filesystem::GetTemporaryFolder(path, true, nullptr));
- path.SetPathname(Filesystem::TempFilename(path, "ut"));
+ std::string path =
+ webrtc::test::TempFilename(webrtc::test::OutputPath(), "ut");
LogSinkImpl<FileStream> stream;
- EXPECT_TRUE(stream.Open(path.pathname(), "wb", nullptr));
+ EXPECT_TRUE(stream.Open(path, "wb", nullptr));
stream.DisableBuffering();
LogMessage::AddLogToStream(&stream, LS_SENSITIVE);
@@ -157,7 +156,7 @@ TEST(LogTest, MAYBE_Perf) {
LogMessage::RemoveLogToStream(&stream);
stream.Close();
- Filesystem::DeleteFile(path);
+ webrtc::test::RemoveFile(path);
LOG(LS_INFO) << "Average log time: " << TimeDiff(finish, start) << " ms";
}
« no previous file with comments | « webrtc/rtc_base/fileutils_unittest.cc ('k') | webrtc/rtc_base/optionsfile_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698