Index: ui/gfx/render_text_unittest.cc |
diff --git a/ui/gfx/render_text_unittest.cc b/ui/gfx/render_text_unittest.cc |
index 2680800e30bc308ff9ae6d3845e52a9328b70020..402e3e66edb4f80a3e2fb69f7435979dca4c7ddb 100644 |
--- a/ui/gfx/render_text_unittest.cc |
+++ b/ui/gfx/render_text_unittest.cc |
@@ -38,6 +38,7 @@ bool IndexInRange(const ui::Range& range, size_t index) { |
return index >= range.start() && index < range.end(); |
} |
+#if !defined(OS_MACOSX) |
// A test utility function to set the application default text direction. |
void SetRTL(bool rtl) { |
// Override the current locale/direction. |
@@ -48,6 +49,7 @@ void SetRTL(bool rtl) { |
#endif |
EXPECT_EQ(rtl, base::i18n::IsRTL()); |
} |
+#endif |
} // namespace |