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

Unified Diff: base/sys_string_conversions_unittest.cc

Issue 147146: Only run the UTF-8 assuming sys conversion tests on Linux. (Closed)
Patch Set: Created 11 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_string_conversions_unittest.cc
diff --git a/base/sys_string_conversions_unittest.cc b/base/sys_string_conversions_unittest.cc
index 4834f00ee57b6b0cd9c61033927804f516b20b7c..344626ffc7474f3d49633182a9485a8dd33078b6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698