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

Unified Diff: content/browser/indexed_db/list_set_unittest.cc

Issue 2601983002: [IndexedDB] Adding transaction and value support to observers (Closed)
Patch Set: added comments and bug link Created 3 years, 11 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 | « content/browser/indexed_db/list_set.h ('k') | content/child/indexed_db/indexed_db_callbacks_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « content/browser/indexed_db/list_set.h ('k') | content/child/indexed_db/indexed_db_callbacks_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698