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

Unified Diff: webrtc/rtc_base/optionsfile_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/logging_unittest.cc ('k') | webrtc/rtc_base/unixfilesystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/optionsfile_unittest.cc
diff --git a/webrtc/rtc_base/optionsfile_unittest.cc b/webrtc/rtc_base/optionsfile_unittest.cc
index 525c317a153fe24d57eac88132d52c1b78801c12..b4f14dbfa65a69b1d73e1d026942f9b629d4c00b 100644
--- a/webrtc/rtc_base/optionsfile_unittest.cc
+++ b/webrtc/rtc_base/optionsfile_unittest.cc
@@ -11,10 +11,9 @@
#include <memory>
#include "webrtc/rtc_base/checks.h"
-#include "webrtc/rtc_base/fileutils.h"
#include "webrtc/rtc_base/gunit.h"
#include "webrtc/rtc_base/optionsfile.h"
-#include "webrtc/rtc_base/pathutils.h"
+#include "webrtc/test/testsupport/fileutils.h"
namespace rtc {
@@ -46,14 +45,13 @@ static int kZero = 0;
class MAYBE_OptionsFileTest : public testing::Test {
public:
MAYBE_OptionsFileTest() {
- Pathname dir;
- RTC_CHECK(Filesystem::GetTemporaryFolder(dir, true, nullptr));
- test_file_ = Filesystem::TempFilename(dir, ".testfile");
+ test_file_ =
+ webrtc::test::TempFilename(webrtc::test::OutputPath(), ".testfile");
OpenStore();
}
~MAYBE_OptionsFileTest() override {
- remove(test_file_.c_str());
+ webrtc::test::RemoveFile(test_file_);
}
protected:
« no previous file with comments | « webrtc/rtc_base/logging_unittest.cc ('k') | webrtc/rtc_base/unixfilesystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698