From 6628d43ddb747db8e8af074db6554bcd9ed0bdc2 Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Thu, 25 Jun 2009 12:05:07 +0000 Subject: 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 --- base/sys_string_conversions_unittest.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'base/sys_string_conversions_unittest.cc') 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 -- cgit v1.1