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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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
Index: chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
index d47296fe760905482d12b6785f7c325955631d92..c82a41ea4e8a5580fe277895d8763ca66b69bfc1 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
@@ -13,10 +13,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
-#if defined(TOOLKIT_GTK)
-#include <gtk/gtk.h>
-#endif
-
namespace extensions {
namespace errors = manifest_errors;
@@ -141,13 +137,8 @@ TEST_F(InitValueManifestTest, InitFromValueValid) {
}
TEST_F(InitValueManifestTest, InitFromValueValidNameInRTL) {
-#if defined(TOOLKIT_GTK)
- GtkTextDirection gtk_dir = gtk_widget_get_default_direction();
- gtk_widget_set_default_direction(GTK_TEXT_DIR_RTL);
-#else
std::string locale = l10n_util::GetApplicationLocale("");
base::i18n::SetICUDefaultLocale("he");
-#endif
// No strong RTL characters in name.
scoped_refptr<Extension> extension(LoadAndExpectSuccess(
@@ -165,11 +156,7 @@ TEST_F(InitValueManifestTest, InitFromValueValidNameInRTL) {
EXPECT_EQ(localized_name, base::UTF8ToUTF16(extension->name()));
// Reset locale.
-#if defined(TOOLKIT_GTK)
- gtk_widget_set_default_direction(gtk_dir);
-#else
base::i18n::SetICUDefaultLocale(locale);
-#endif
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698