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

Unified Diff: net/base/file_stream_unittest.cc

Issue 18764: Change FileStream to use FilePath instead of wstring. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « net/base/file_stream_posix.cc ('k') | net/base/file_stream_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/file_stream_unittest.cc
===================================================================
--- net/base/file_stream_unittest.cc (revision 8584)
+++ net/base/file_stream_unittest.cc (working copy)
@@ -19,16 +19,17 @@
PlatformTest::SetUp();
file_util::CreateTemporaryFileName(&temp_file_path_);
- file_util::WriteFile(temp_file_path_, kTestData, kTestDataSize);
+ file_util::WriteFile(temp_file_path_.ToWStringHack(),
+ kTestData, kTestDataSize);
}
virtual void TearDown() {
file_util::Delete(temp_file_path_, false);
PlatformTest::TearDown();
}
- const std::wstring temp_file_path() const { return temp_file_path_; }
+ const FilePath temp_file_path() const { return temp_file_path_; }
private:
- std::wstring temp_file_path_;
+ FilePath temp_file_path_;
};
TEST_F(FileStreamTest, BasicOpenClose) {
« no previous file with comments | « net/base/file_stream_posix.cc ('k') | net/base/file_stream_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698