| 26 | typedef CompactPointerSet<const char*> StringSet; |
| 27 | |
| 28 | static std::vector<const char*> SortedContents(const StringSet& set) { |
| 29 | std::vector<const char*> contents(set.begin(), set.end()); |
| 30 | std::sort(contents.begin(), contents.end()); |
| 31 | return contents; |
| 32 | } |
| 33 | |
| 34 | TEST(CompactPointerSetTest, Simple) { |
| 35 | // Make some aligned and some unaligned pointers. |