Lines Matching refs:trans
197 ReadTransaction trans(dir, __FILE__, __LINE__);
199 dir->GetChildHandles(&trans, trans.root_id(), &children);
213 void WriteTestDataToEntry(WriteTransaction* trans, MutableEntry* entry) {
222 void VerifyTestDataInEntry(BaseTransaction* trans, Entry* entry) {
282 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
292 MutableEntry entry(&trans, CREATE, test->parent_id, name);
323 entry.Put(SERVER_PARENT_ID, trans.root_id());
416 ReadTransaction trans(dir, __FILE__, __LINE__);
417 Entry entry(&trans, GET_BY_HANDLE, metahandle);
489 ReadTransaction trans(dir, __FILE__, __LINE__);
490 SyncerUtil::GetUnsyncedEntries(&trans, &handles);
1206 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1207 Entry entry(&trans, GET_BY_ID,
1265 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1267 Entry name_clash(&trans, GET_BY_ID, ids_.FromNumber(2));
1272 Entry bad_parent(&trans, GET_BY_ID, ids_.FromNumber(3));
1277 Entry bad_parent_child(&trans, GET_BY_ID, ids_.FromNumber(9));
1282 Entry bad_parent_child2(&trans, GET_BY_ID, ids_.FromNumber(100));
1302 ReadTransaction trans(dir, __FILE__, __LINE__);
1304 Entry still_a_dir(&trans, GET_BY_ID, ids_.FromNumber(10));
1311 Entry rename(&trans, GET_BY_ID, ids_.FromNumber(1));
1319 Entry name_clash(&trans, GET_BY_ID, ids_.FromNumber(2));
1326 Entry ignored_old_version(&trans, GET_BY_ID, ids_.FromNumber(4));
1333 Entry circular_parent_issue(&trans, GET_BY_ID, ids_.FromNumber(5));
1342 Entry circular_parent_target(&trans, GET_BY_ID, ids_.FromNumber(6));
1366 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1367 MutableEntry parent(&trans, CREATE, root_id_, "Folder");
1374 MutableEntry entry(&trans, CREATE, parent.Get(ID), "new_entry");
1377 WriteTestDataToEntry(&trans, &entry);
1387 ReadTransaction trans(dir, __FILE__, __LINE__);
1388 Entry entry_folder(&trans, GET_BY_HANDLE, metahandle_folder);
1392 Entry entry_new(&trans, GET_BY_HANDLE, metahandle_new_entry);
1398 Entry new_dir(&trans, GET_BY_ID, ids_.FromNumber(2));
1416 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1417 MutableEntry parent(&trans, CREATE, root_id_, "Folder");
1430 ReadTransaction trans(dir, __FILE__, __LINE__);
1435 Entry entry_folder(&trans, GET_BY_HANDLE, metahandle);
1450 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1451 MutableEntry entry(&trans, CREATE, trans.root_id(), "new_folder");
1463 ReadTransaction trans(dir, __FILE__, __LINE__);
1464 Entry entry(&trans, GET_BY_HANDLE, metahandle_folder);
1472 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1473 MutableEntry entry(&trans, CREATE, folder_id, "new_entry");
1476 WriteTestDataToEntry(&trans, &entry);
1482 ReadTransaction trans(dir, __FILE__, __LINE__);
1483 Entry entry(&trans, syncable::GET_BY_HANDLE, metahandle_entry);
1489 VerifyTestDataInEntry(&trans, &entry);
1512 ReadTransaction trans(dir, __FILE__, __LINE__);
1513 Entry folder(&trans, GET_BY_HANDLE, metahandle_folder);
1519 EXPECT_EQ(trans.root_id(), folder.Get(PARENT_ID));
1522 Entry old_dead_folder(&trans, GET_BY_ID, folder_id);
1526 Entry entry(&trans, syncable::GET_BY_HANDLE, metahandle_entry);
1531 VerifyTestDataInEntry(&trans, &entry);
1544 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1545 MutableEntry entry(&trans, CREATE, trans.root_id(), "new_entry");
1548 WriteTestDataToEntry(&trans, &entry);
1554 ReadTransaction trans(dir, __FILE__, __LINE__);
1556 Entry entry(&trans, GET_BY_HANDLE, entry_metahandle);
1560 VerifyTestDataInEntry(&trans, &entry);
1580 ReadTransaction trans(dir, __FILE__, __LINE__);
1581 Entry entry(&trans, GET_BY_HANDLE, entry_metahandle);
1601 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1602 MutableEntry entry(&trans, CREATE, trans.root_id(), "new_entry");
1605 WriteTestDataToEntry(&trans, &entry);
1610 ReadTransaction trans(dir, __FILE__, __LINE__);
1611 Entry entry(&trans, GET_BY_HANDLE, entry_metahandle);
1615 VerifyTestDataInEntry(&trans, &entry);
1635 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1637 &trans, trans.root_id(), "new_entry");
1638 MutableEntry entry(&trans, GET_BY_ID, new_entry_id);
1646 ReadTransaction trans(dir, __FILE__, __LINE__);
1648 &trans, trans.root_id(), "new_entry");
1649 Entry entry(&trans, GET_BY_ID, new_entry_id);
1653 Entry old_entry(&trans, GET_BY_ID, entry_id);
1686 ReadTransaction trans(dir, __FILE__, __LINE__);
1688 Entry A(&trans, GET_BY_ID, ids_.FromNumber(1));
1694 Entry B(&trans, GET_BY_ID, ids_.FromNumber(2));
1728 ReadTransaction trans(dir, __FILE__, __LINE__);
1730 Entry A(&trans, GET_BY_ID, ids_.FromNumber(1));
1736 Entry B(&trans, GET_BY_ID, ids_.FromNumber(2));
1753 ReadTransaction trans(dir, __FILE__, __LINE__);
1756 &trans, ids_.FromNumber(4), "gggchild");
1757 Entry child(&trans, GET_BY_ID, child_id);
1767 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1768 MutableEntry bob(&trans,
1770 GetOnlyEntryWithName(&trans,
1775 MutableEntry entry2(&trans, syncable::CREATE, bob.Get(syncable::ID),
1789 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1790 MutableEntry entry(&trans, syncable::CREATE, trans.root_id(),
1804 ReadTransaction trans(dir, __FILE__, __LINE__);
1805 Entry parent_entry(&trans, syncable::GET_BY_ID,
1806 GetOnlyEntryWithName(&trans, TestIdFactory::root(), "bob"));
1810 GetOnlyEntryWithName(&trans, parent_entry.Get(ID), "bob");
1811 Entry child(&trans, syncable::GET_BY_ID, child_id);
1832 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1833 MutableEntry fred_match(&trans, CREATE, trans.root_id(),
1837 WriteTestDataToEntry(&trans, &fred_match);
1846 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
1847 MutableEntry fred_match(&trans, GET_BY_HANDLE, metahandle_fred);
1851 mock_server_->AddUpdateBookmark(fred_match_id, trans.root_id(),
1888 ReadTransaction trans(dir, __FILE__, __LINE__);
1889 dir->GetChildHandles(&trans, parent_id_, &children);
1891 Entry child(&trans, syncable::GET_BY_ID, child_id_);
1928 ReadTransaction trans(dir, __FILE__, __LINE__);
1929 Entry entry(&trans, syncable::GET_BY_HANDLE, entry_metahandle);
1944 ReadTransaction trans(dir, __FILE__, __LINE__);
1945 Entry entry(&trans, syncable::GET_BY_ID, id);
1981 ReadTransaction trans(dir, __FILE__, __LINE__);
1983 dir->GetChildHandles(&trans, root_id_, &children);
1985 dir->GetChildHandles(&trans, parent_id, &children);
1988 dir->GetUnappliedUpdateMetaHandles(&trans, &unapplied);
1991 dir->GetUnsyncedMetaHandles(&trans, &unsynced);
2001 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2002 MutableEntry entry(&trans, CREATE, trans.root_id(), "bob");
2024 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2025 MutableEntry entry(&trans, CREATE, trans.root_id(), "bob");
2059 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2060 MutableEntry entry(&trans, CREATE, trans.root_id(), "existing");
2069 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2070 MutableEntry newfolder(&trans, CREATE, trans.root_id(), "new");
2076 MutableEntry existing(&trans, GET_BY_HANDLE, existing_metahandle);
2098 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2099 MutableEntry newfolder(&trans, CREATE, ids_.FromNumber(1), "local");
2110 ReadTransaction trans(dir, __FILE__, __LINE__);
2111 Entry entry(&trans, syncable::GET_BY_HANDLE, newfolder_metahandle);
2126 ReadTransaction trans(dir, __FILE__, __LINE__);
2127 Entry id1(&trans, GET_BY_ID, ids_.FromNumber(7801));
2131 Entry id2(&trans, GET_BY_ID, ids_.FromNumber(1024));
2147 ReadTransaction trans(dir, __FILE__, __LINE__);
2148 Entry id1(&trans, GET_BY_ID, ids_.FromNumber(7801));
2152 Entry id2(&trans, GET_BY_ID, ids_.FromNumber(1024));
2156 Entry id3(&trans, GET_BY_ID, ids_.FromNumber(4096));
2166 ReadTransaction trans(dir, __FILE__, __LINE__);
2167 Entry id1(&trans, GET_BY_ID, ids_.FromNumber(7801));
2171 Entry id2(&trans, GET_BY_ID, ids_.FromNumber(1024));
2175 Entry id3(&trans, GET_BY_ID, ids_.FromNumber(4096));
2189 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2193 MutableEntry e(&trans, CREATE, trans.root_id(), name);
2219 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2231 ReadTransaction trans(dir, __FILE__, __LINE__);
2233 Entry e(&trans, GET_BY_ID, tree_ids[i]);
2248 ReadTransaction trans(dir, __FILE__, __LINE__);
2250 Entry e(&trans, GET_BY_ID, tree_ids[i]);
2264 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2265 MutableEntry e(&trans, GET_BY_ID, ids_.FromNumber(1));
2509 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2510 MutableEntry B(&trans, GET_BY_ID, ids_.FromNumber(2));
2512 WriteTestDataToEntry(&trans, &B);
2519 ReadTransaction trans(dir, __FILE__, __LINE__);
2520 Entry B(&trans, GET_BY_ID, ids_.FromNumber(2));
2535 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2536 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2546 ReadTransaction trans(dir, __FILE__, __LINE__);
2547 Entry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2549 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(2));
2568 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2569 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2572 WriteTestDataToEntry(&trans, &bob);
2580 ReadTransaction trans(dir, __FILE__, __LINE__);
2581 Entry bob(&trans, GET_BY_HANDLE, bob_metahandle);
2604 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2605 MutableEntry bob(&trans, GET_BY_ID, bob_id);
2617 ReadTransaction trans(dir, __FILE__, __LINE__);
2619 Entry bob(&trans, GET_BY_ID, bob_id);
2627 Entry dead_fred(&trans, GET_BY_ID, fred_id);
2631 Entry fred(&trans, GET_BY_ID, bob.Get(PARENT_ID));
2633 EXPECT_TRUE(fred.Get(PARENT_ID) == trans.root_id());
2653 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2654 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2657 WriteTestDataToEntry(&trans, &bob);
2661 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2662 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2683 ReadTransaction trans(dir, __FILE__, __LINE__);
2684 Entry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2687 GetOnlyEntryWithName(&trans, TestIdFactory::root(), "fred");
2688 Entry fred(&trans, GET_BY_ID, fred_id);
2711 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2712 Entry fred(&trans, GET_BY_ID, fred_id);
2715 MutableEntry bob(&trans, GET_BY_ID, bob_id);
2727 ReadTransaction trans(dir, __FILE__, __LINE__);
2728 Entry bob(&trans, GET_BY_ID, bob_id);
2732 Entry dead_fred(&trans, GET_BY_ID, fred_id);
2736 Entry fred(&trans, GET_BY_ID, bob.Get(PARENT_ID));
2771 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2772 Entry alice(&trans, GET_BY_ID,
2777 MutableEntry bob(&trans, GET_BY_ID,
2805 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2806 MutableEntry fred(&trans, GET_BY_ID, fred_id);
2826 ReadTransaction trans(dir, __FILE__, __LINE__);
2827 Entry bob(&trans, GET_BY_ID, bob_id);
2831 Entry dead_fred(&trans, GET_BY_ID, fred_id);
2835 Entry alice(&trans, GET_BY_ID, bob.Get(PARENT_ID));
2865 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2866 MutableEntry bob(&trans, GET_BY_ID, bob_id);
2870 MutableEntry new_item(&trans, CREATE, fred_id, "new_item");
2871 WriteTestDataToEntry(&trans, &new_item);
2881 ReadTransaction trans(dir, __FILE__, __LINE__);
2883 Entry bob(&trans, GET_BY_ID, bob_id);
2890 Entry dead_fred(&trans, GET_BY_ID, fred_id);
2893 Entry fred(&trans, GET_BY_ID, bob.Get(PARENT_ID));
2901 Entry new_item(&trans, GET_BY_ID, new_item_id);
2915 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2916 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2926 ReadTransaction trans(dir, __FILE__, __LINE__);
2927 Entry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2929 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(2));
2949 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2950 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2961 ReadTransaction trans(dir, __FILE__, __LINE__);
2962 Entry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2964 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(2));
2983 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
2984 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2994 ReadTransaction trans(dir, __FILE__, __LINE__);
2995 Entry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
2997 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(2));
3016 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3017 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
3021 MutableEntry joe(&trans, GET_BY_ID, ids_.FromNumber(2));
3031 ReadTransaction trans(dir, __FILE__, __LINE__);
3032 Entry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
3034 Entry joe(&trans, GET_BY_ID, ids_.FromNumber(2));
3036 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(3));
3061 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3062 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
3066 MutableEntry joe(&trans, GET_BY_ID, ids_.FromNumber(2));
3076 ReadTransaction trans(dir, __FILE__, __LINE__);
3077 Entry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
3079 Entry joe(&trans, GET_BY_ID, ids_.FromNumber(2));
3081 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(3));
3083 Entry susan(&trans, GET_BY_ID, ids_.FromNumber(4));
3116 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3117 MutableEntry susan(&trans, GET_BY_ID, susan_id);
3119 dir->GetChildHandles(&trans, susan.Get(ID), &children);
3147 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3148 MutableEntry bob(&trans, GET_BY_ID, bob_id);
3153 MutableEntry joe(&trans, GET_BY_ID, joe_id);
3167 ReadTransaction trans(dir, __FILE__, __LINE__);
3168 Entry bob(&trans, GET_BY_ID, bob_id);
3170 Entry joe(&trans, GET_BY_ID, joe_id);
3172 Entry fred(&trans, GET_BY_ID, fred_id);
3174 Entry susan(&trans, GET_BY_ID, susan_id);
3191 ReadTransaction trans(dir, __FILE__, __LINE__);
3192 Entry bob(&trans, GET_BY_ID, bob_id);
3194 Entry joe(&trans, GET_BY_ID, joe_id);
3196 Entry fred(&trans, GET_BY_ID, fred_id);
3198 Entry susan(&trans, GET_BY_ID, susan_id);
3231 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3232 MutableEntry bob(&trans, GET_BY_ID, bob_id);
3249 ReadTransaction trans(dir, __FILE__, __LINE__);
3250 Entry bob(&trans, GET_BY_ID, bob_id);
3256 Entry dead_alice(&trans, GET_BY_ID, alice_id);
3261 Entry alice(&trans, GET_BY_ID, bob.Get(PARENT_ID));
3269 Entry dead_fred(&trans, GET_BY_ID, fred_id);
3273 Entry fred(&trans, GET_BY_ID, alice.Get(PARENT_ID));
3303 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3304 MutableEntry bob(&trans, GET_BY_ID, bob_id);
3325 ReadTransaction trans(dir, __FILE__, __LINE__);
3326 Entry bob(&trans, GET_BY_ID, bob_id);
3333 Entry dead_alice(&trans, GET_BY_ID, alice_id);
3337 Entry alice(&trans, GET_BY_ID, bob.Get(PARENT_ID));
3344 Entry dead_fred(&trans, GET_BY_ID, fred_id);
3348 Entry fred(&trans, GET_BY_ID, alice.Get(PARENT_ID));
3355 Entry susan(&trans, GET_BY_ID, susan_id);
3370 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3371 MutableEntry folder(&trans, CREATE, trans.root_id(), "bob");
3376 MutableEntry folder2(&trans, CREATE, trans.root_id(), "fred");
3400 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3401 MutableEntry bob(&trans, GET_BY_ID, ids_.FromNumber(1));
3421 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3423 MutableEntry local_deleted(&trans, CREATE, trans.root_id(), "name");
3429 MutableEntry in_the_way(&trans, CREATE, trans.root_id(), "name");
3433 MutableEntry update(&trans, CREATE_NEW_UPDATE_ITEM, ids_.FromNumber(3));
3443 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3444 context_->resolver()->ProcessConflictSet(&trans, &conflict_set, 50);
3453 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3455 MutableEntry local_deleted(&trans, CREATE, trans.root_id(), "name");
3471 ReadTransaction trans(dir, __FILE__, __LINE__);
3472 Entry local_deleted(&trans, GET_BY_ID, ids_.FromNumber(1));
3489 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3491 MutableEntry local_deleted(&trans, CREATE, trans.root_id(), "name");
3510 ReadTransaction trans(dir, __FILE__, __LINE__);
3511 Entry local_deleted(&trans, GET_BY_ID, ids_.FromNumber(1));
3563 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3564 MutableEntry entry(&trans, CREATE, trans.root_id(), "Copy of base");
3565 WriteTestDataToEntry(&trans, &entry);
3619 ReadTransaction trans(dir, __FILE__, __LINE__);
3620 Entry child(&trans, GET_BY_ID, stuck_entry_id);
3635 ReadTransaction trans(dir, __FILE__, __LINE__);
3636 Entry entry(&trans, GET_BY_ID, folder_id);
3638 Entry child(&trans, GET_BY_ID, stuck_entry_id);
3653 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3654 MutableEntry entry(&trans, GET_BY_ID, ids_.FromNumber(2));
3662 ReadTransaction trans(dir, __FILE__, __LINE__);
3663 Entry entry1(&trans, GET_BY_ID, ids_.FromNumber(1));
3667 Entry entry2(&trans, GET_BY_ID, ids_.FromNumber(2));
3688 ReadTransaction trans(dir, __FILE__, __LINE__);
3689 Entry entry(&trans, GET_BY_ID, ids_.FromNumber(2));
3702 ReadTransaction trans(dir, __FILE__, __LINE__);
3703 Entry entry(&trans, GET_BY_ID, ids_.FromNumber(2));
3719 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3720 MutableEntry entry(&trans, GET_BY_ID, ids_.FromNumber(2));
3783 ReadTransaction trans(dir, __FILE__, __LINE__);
3784 Entry in_root(&trans, GET_BY_ID, in_root_id);
3789 Entry in_in_root(&trans, GET_BY_ID, in_in_root_id);
3824 ReadTransaction trans(dir, __FILE__, __LINE__);
3825 Entry fail_by_old_id_entry(&trans, GET_BY_ID, in_root_id);
3828 Entry foo_entry(&trans, GET_BY_HANDLE, foo_metahandle);
3833 Entry bar_entry(&trans, GET_BY_HANDLE, bar_metahandle);
3851 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3852 MutableEntry oentry(&trans, GET_BY_ID, in_root_id);
3855 WriteTestDataToEntry(&trans, &oentry);
3856 MutableEntry entry(&trans, CREATE, trans.root_id(), "in_root");
3858 WriteTestDataToEntry(&trans, &entry);
3908 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
3909 MutableEntry entry(&trans, GET_BY_ID, folder_one_id);
3914 MutableEntry create(&trans, CREATE, trans.root_id(), "new_folder");
3972 ReadTransaction trans(dir, __FILE__, __LINE__);
3973 Entry entry(&trans, GET_BY_ID, id);
3987 ReadTransaction trans(dir, __FILE__, __LINE__);
3988 Entry entry(&trans, GET_BY_ID, id);
4000 ReadTransaction trans(dir, __FILE__, __LINE__);
4001 Entry entry(&trans, GET_BY_ID, id);
4032 ReadTransaction trans(dir, __FILE__, __LINE__);
4033 Entry entry(&trans, GET_BY_ID, id);
4047 ReadTransaction trans(dir, __FILE__, __LINE__);
4048 Entry entry(&trans, GET_BY_ID, id);
4081 ReadTransaction trans(dir, __FILE__, __LINE__);
4082 Entry perm_folder(&trans, GET_BY_CLIENT_TAG, "permfolder");
4096 ReadTransaction trans(dir, __FILE__, __LINE__);
4098 Entry perm_folder(&trans, GET_BY_CLIENT_TAG, "permfolder");
4118 ReadTransaction trans(dir, __FILE__, __LINE__);
4119 Entry perm_folder(&trans, GET_BY_CLIENT_TAG, "permfolder");
4133 ReadTransaction trans(dir, __FILE__, __LINE__);
4138 Entry rejected_update(&trans, GET_BY_CLIENT_TAG, "wrongtag");
4141 Entry perm_folder(&trans, GET_BY_CLIENT_TAG, "permfolder");
4162 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
4163 MutableEntry perm_folder(&trans, CREATE, ids_.root(), "clientname");
4182 ReadTransaction trans(dir, __FILE__, __LINE__);
4184 Entry perm_folder(&trans, GET_BY_CLIENT_TAG, "clientperm");
4205 ReadTransaction trans(dir, __FILE__, __LINE__);
4207 Entry perm_folder(&trans, GET_BY_CLIENT_TAG, "clientperm");
4229 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
4230 MutableEntry perm_folder(&trans, CREATE, ids_.root(), "clientname");
4246 ReadTransaction trans(dir, __FILE__, __LINE__);
4248 Entry perm_folder(&trans, GET_BY_CLIENT_TAG, "clientperm");
4280 ReadTransaction trans(dir, __FILE__, __LINE__);
4282 Entry tag1(&trans, GET_BY_CLIENT_TAG, "tag1");
4294 Entry tag2(&trans, GET_BY_CLIENT_TAG, "tag2");
4307 dir->GetChildHandles(&trans, trans.root_id(), &children);
4318 ReadTransaction trans(dir, __FILE__, __LINE__);
4320 Entry tag1(&trans, GET_BY_CLIENT_TAG, "tag1");
4333 Entry tag2(&trans, GET_BY_CLIENT_TAG, "tag2");
4347 dir->GetChildHandles(&trans, trans.root_id(), &children);
4393 ReadTransaction trans(dir, __FILE__, __LINE__);
4395 Entry tag_a(&trans, GET_BY_CLIENT_TAG, "tag a");
4406 Entry tag_b(&trans, GET_BY_CLIENT_TAG, "tag b");
4417 Entry tag_c(&trans, GET_BY_CLIENT_TAG, "tag c");
4429 dir->GetChildHandles(&trans, trans.root_id(), &children);
4441 ReadTransaction trans(dir, __FILE__, __LINE__);
4442 Entry hurdle(&trans, GET_BY_HANDLE, hurdle_handle);
4449 Entry tag_alpha(&trans, GET_BY_SERVER_TAG, "alpha");
4451 Entry tag_bob(&trans, GET_BY_SERVER_TAG, "bob");
4463 ReadTransaction trans(dir, __FILE__, __LINE__);
4467 Entry tag_alpha(&trans, GET_BY_SERVER_TAG, "alpha");
4472 Entry tag_bob(&trans, GET_BY_SERVER_TAG, "bob");
4478 Entry hurdle(&trans, GET_BY_HANDLE, hurdle_handle);
4545 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
4546 MutableEntry perm_folder(&trans, CREATE, ids_.root(), "clientname");
4560 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
4561 MutableEntry entry(&trans, GET_BY_CLIENT_TAG, client_tag_);
4572 WriteTransaction trans(dir, UNITTEST, __FILE__, __LINE__);
4573 MutableEntry entry(&trans, GET_BY_CLIENT_TAG, client_tag_);
4585 ReadTransaction trans(dir, __FILE__, __LINE__);
4586 Entry entry(&trans, GET_BY_CLIENT_TAG, client_tag_);
4994 ReadTransaction trans(dir, __FILE__, __LINE__);
5001 Entry entry_with_id(&trans, GET_BY_ID, id);
5122 ReadTransaction trans(dir, __FILE__, __LINE__);
5124 Entry low(&trans, GET_BY_ID, low_id_);
5125 Entry mid(&trans, GET_BY_ID, mid_id_);
5126 Entry high(&trans, GET_BY_ID, high_id_);