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

Unified Diff: base/file_util_unittest.cc

Issue 2861042: Deprecate more old filepath functions. (Closed)
Patch Set: Created 10 years, 6 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') | chrome/browser/tab_contents/navigation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_unittest.cc
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc
index 39e5398cb2f0f9cdd0def3dcc918730e46bad9a0..20f9c9829191d9aa61180ae7bfe019e2f063cf55 100644
--- a/base/file_util_unittest.cc
+++ b/base/file_util_unittest.cc
@@ -325,6 +325,8 @@ static const struct filename_case {
#endif
};
+#if defined(OS_WIN)
+// This function is deprecated on non-Windows.
TEST_F(FileUtilTest, GetFilenameFromPath) {
for (unsigned int i = 0; i < arraysize(filename_cases); ++i) {
const filename_case& value = filename_cases[i];
@@ -332,6 +334,7 @@ TEST_F(FileUtilTest, GetFilenameFromPath) {
EXPECT_EQ(value.filename, result);
}
}
+#endif
// Test finding the file type from a path name
static const struct extension_case {
« no previous file with comments | « base/file_util_deprecated.h ('k') | chrome/browser/tab_contents/navigation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698