summaryrefslogtreecommitdiffstats
path: root/base/strings/string16_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/strings/string16_unittest.cc')
-rw-r--r--base/strings/string16_unittest.cc14
1 files changed, 3 insertions, 11 deletions
diff --git a/base/strings/string16_unittest.cc b/base/strings/string16_unittest.cc
index 0d2ca80..4e58218 100644
--- a/base/strings/string16_unittest.cc
+++ b/base/strings/string16_unittest.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include <sstream>
-#include <unordered_set>
#include "base/strings/string16.h"
@@ -12,6 +11,8 @@
namespace base {
+#if defined(WCHAR_T_IS_UTF32)
+
// We define a custom operator<< for string16 so we can use it with logging.
// This tests that conversion.
TEST(String16Test, OutputStream) {
@@ -52,15 +53,6 @@ TEST(String16Test, OutputStream) {
}
}
-TEST(String16Test, Hash) {
- string16 str1 = ASCIIToUTF16("hello");
- string16 str2 = ASCIIToUTF16("world");
-
- std::unordered_set<string16> set;
-
- set.insert(str1);
- EXPECT_EQ(1u, set.count(str1));
- EXPECT_EQ(0u, set.count(str2));
-}
+#endif
} // namespace base