diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2015-12-30 01:18:22 -0800 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2015-12-30 01:18:22 -0800 |
commit | 17347e3d0d86413eb6bca6fa077bfc319818b32a (patch) | |
tree | b32808e16f6ec26490817d59f96e8c4cb0d1a6dd /src/google/protobuf/stubs/stringpiece_unittest.cc | |
parent | 283c40c8972e0096dd10c9d58685f71e8c19d783 (diff) | |
download | protobuf-17347e3d0d86413eb6bca6fa077bfc319818b32a.tar.gz protobuf-17347e3d0d86413eb6bca6fa077bfc319818b32a.tar.bz2 protobuf-17347e3d0d86413eb6bca6fa077bfc319818b32a.zip |
Fix for Visual Studio 2008.
Diffstat (limited to 'src/google/protobuf/stubs/stringpiece_unittest.cc')
-rw-r--r-- | src/google/protobuf/stubs/stringpiece_unittest.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/google/protobuf/stubs/stringpiece_unittest.cc b/src/google/protobuf/stubs/stringpiece_unittest.cc index 43737a57..a52d81f8 100644 --- a/src/google/protobuf/stubs/stringpiece_unittest.cc +++ b/src/google/protobuf/stubs/stringpiece_unittest.cc @@ -746,23 +746,6 @@ TEST(StringPiece, Comparisons2) { EXPECT_TRUE(abc.ends_with("nopqrstuvwxyz")); } -TEST(StringPiece, HashFunction) { - hash_set<StringPiece> set; - - set.insert(StringPiece("hello")); - EXPECT_EQ(1, set.size()); - - // Insert a StringPiece of the same value again and should NOT increment - // size of the set. - set.insert(StringPiece("hello")); - EXPECT_EQ(1, set.size()); - - // Insert a StringPiece with different value and check that size of the set - // has been increment by one. - set.insert(StringPiece("world")); - EXPECT_EQ(2, set.size()); -} - TEST(ComparisonOpsTest, StringCompareNotAmbiguous) { EXPECT_EQ("hello", string("hello")); EXPECT_LT("hello", string("world")); |