summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 12:05:07 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 12:05:07 +0000
commit6628d43ddb747db8e8af074db6554bcd9ed0bdc2 (patch)
treee206913b81f0b05a4f83797d62ff3e15846f0e88
parentfb17d121e0b074f6f14335fbf6ddee10aec53425 (diff)
downloadchromium_src-6628d43ddb747db8e8af074db6554bcd9ed0bdc2.zip
chromium_src-6628d43ddb747db8e8af074db6554bcd9ed0bdc2.tar.gz
chromium_src-6628d43ddb747db8e8af074db6554bcd9ed0bdc2.tar.bz2
Only run the UTF-8 assuming sys conversion tests on Linux.
Review URL: http://codereview.chromium.org/147146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19240 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/sys_string_conversions_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/sys_string_conversions_unittest.cc b/base/sys_string_conversions_unittest.cc
index 4834f00..344626f 100644
--- a/base/sys_string_conversions_unittest.cc
+++ b/base/sys_string_conversions_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/basictypes.h"
#include "base/string_piece.h"
#include "base/string_util.h"
#include "base/sys_string_conversions.h"
@@ -69,6 +70,7 @@ TEST(SysStrings, SysUTF8ToWide) {
}
// We assume the test is running in a UTF8 locale.
+#if defined(OS_LINUX)
TEST(SysStrings, SysWideToNativeMB) {
using base::SysWideToNativeMB;
EXPECT_EQ("Hello, world", SysWideToNativeMB(L"Hello, world"));
@@ -176,3 +178,4 @@ TEST(SysStrings, SysNativeMBAndWide) {
EXPECT_EQ(wide, trip);
}
}
+#endif // OS_LINUX