| Index: content/browser/indexed_db/list_set_unittest.cc
|
| diff --git a/content/browser/indexed_db/list_set_unittest.cc b/content/browser/indexed_db/list_set_unittest.cc
|
| index 642486640feccc8d5e084cdf0c54e4629fc6a503..b5b7145669a8812977e2bc75774f850b66366fde 100644
|
| --- a/content/browser/indexed_db/list_set_unittest.cc
|
| +++ b/content/browser/indexed_db/list_set_unittest.cc
|
| @@ -50,6 +50,23 @@ TEST(ListSetTest, ListSetConstIterator) {
|
| EXPECT_EQ(ref.end(), it);
|
| }
|
|
|
| +TEST(ListSetTest, ListSetInsertFront) {
|
| + list_set<int> set;
|
| + for (int i = 5; i > 0; --i)
|
| + set.insert(i);
|
| + for (int i = 6; i <= 10; ++i)
|
| + set.insert_front(i);
|
| +
|
| + const list_set<int>& ref = set;
|
| +
|
| + list_set<int>::const_iterator it = ref.begin();
|
| + for (int i = 10; i > 0; --i) {
|
| + EXPECT_EQ(i, *it);
|
| + ++it;
|
| + }
|
| + EXPECT_EQ(ref.end(), it);
|
| +}
|
| +
|
| TEST(ListSetTest, ListSetPrimitive) {
|
| list_set<int> set;
|
| EXPECT_TRUE(set.empty());
|
|
|