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

Unified Diff: chrome/common/extensions/extension_l10n_util_unittest.cc

Issue 10790087: [Web Intents] Localization of intent titles for CWS suggestions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to HEAD, adjust namespace/include Created 8 years, 5 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 | « chrome/common/extensions/extension_l10n_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_l10n_util_unittest.cc
diff --git a/chrome/common/extensions/extension_l10n_util_unittest.cc b/chrome/common/extensions/extension_l10n_util_unittest.cc
index e45612847ec64bbf7cf93b85e9626ff55102fb0d..bee0478dd1eba994f970dbc448d5854b2e4ee41e 100644
--- a/chrome/common/extensions/extension_l10n_util_unittest.cc
+++ b/chrome/common/extensions/extension_l10n_util_unittest.cc
@@ -617,4 +617,14 @@ TEST(ExtensionL10nUtil, ShouldRelocalizeManifestDifferentCurrentLocale) {
EXPECT_TRUE(extension_l10n_util::ShouldRelocalizeManifest(info));
}
+TEST(ExtensionL10nUtil, GetAllFallbackLocales) {
+ std::vector<std::string> fallback_locales;
+ extension_l10n_util::GetAllFallbackLocales("en_US", "all", &fallback_locales);
+ ASSERT_EQ(3U, fallback_locales.size());
+
+ CHECK_EQ("en_US", fallback_locales[0]);
+ CHECK_EQ("en", fallback_locales[1]);
+ CHECK_EQ("all", fallback_locales[2]);
+}
+
} // namespace
« no previous file with comments | « chrome/common/extensions/extension_l10n_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698