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

Unified Diff: base/file_util_unittest.cc

Issue 9585001: Cleanup: Remove deprecated version of file_util::AppendToPath(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « base/file_util_deprecated.h ('k') | base/test/test_file_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_unittest.cc
===================================================================
--- base/file_util_unittest.cc (revision 125906)
+++ base/file_util_unittest.cc (working copy)
@@ -234,22 +234,6 @@
#endif
};
-#if defined(OS_WIN)
-// This function is deprecated, but still used on Windows.
-TEST_F(FileUtilTest, AppendToPath) {
- for (unsigned int i = 0; i < arraysize(append_cases); ++i) {
- const append_case& value = append_cases[i];
- std::wstring result = value.path;
- file_util::AppendToPath(&result, value.ending);
- EXPECT_EQ(value.result, result);
- }
-
-#if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON)
- file_util::AppendToPath(NULL, L"path"); // asserts in debug mode
-#endif
-}
-#endif // defined(OS_WIN)
-
static const struct filename_case {
const wchar_t* path;
const wchar_t* filename;
« no previous file with comments | « base/file_util_deprecated.h ('k') | base/test/test_file_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698