Commit a8b10e49 authored by tc@google.com's avatar tc@google.com

Fix GetAppLocale that is failing on posix. .dll change to .pak.

TBR to get the tree green.

Review URL: http://codereview.chromium.org/28236


git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10541 0039d316-1c4b-4281-b951-d872f2087c98
parent fe0e782a
......@@ -94,20 +94,27 @@ TEST_F(L10nUtilTest, GetAppLocale) {
PathService::Override(chrome::DIR_LOCALES, new_locale_dir);
// Make fake locale files.
const wchar_t* filenames[] = {
L"en-US.dll",
L"en-GB.dll",
L"fr.dll",
L"es-419.dll",
L"es.dll",
L"zh-TW.dll",
L"zh-CN.dll",
L"he.dll",
L"fil.dll",
L"nb.dll",
L"en-US",
L"en-GB",
L"fr",
L"es-419",
L"es",
L"zh-TW",
L"zh-CN",
L"he",
L"fil",
L"nb",
};
#if defined(OS_WIN)
static const wchar_t kLocaleFileExtension[] = L".dll";
#elif defined(OS_POSIX)
static const wchar_t kLocaleFileExtension[] = L".pak";
#endif
for (size_t i = 0; i < arraysize(filenames); ++i) {
std::wstring filename = new_locale_dir;
file_util::AppendToPath(&filename, filenames[i]);
filename += kLocaleFileExtension;
file_util::WriteFile(filename, "", 0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment