src/base/i18n/rtl_unittest.cc
// A test utility function to set the application default text direction.
A test utility function to set the application default text direction.
A test utility function to set the application default text direction .
void SetRTL(bool rtl) {
  SetICUDefaultLocale(rtl ? "he" : "en");
#if defined(TOOLKIT_GTK)
  gtk_widget_set_default_direction(rtl ? GTK_TEXT_DIR_RTL : GTK_TEXT_DIR_LTR);
#endif
  EXPECT_EQ(rtl, IsRTL());
}
void SetRTL ( bool rtl ) { SetICUDefaultLocale ( rtl ? " " : " " ) ; #if defined ( TOOLKIT_GTK ) gtk_widget_set_default_direction ( rtl ? GTK_TEXT_DIR_RTL : GTK_TEXT_DIR_LTR ) ; #endif EXPECT_EQ ( rtl , IsRTL ( ) ) ; }
A test utility function to set the application default text direction.
A test utility function to set the application default text direction .
// Override the current locale/direction. // Do the same for GTK, which does not rely on the ICU default locale.