Home | History | Annotate | Download | only in engine

Lines Matching refs:fred

2047 //   make a new folder fred
2048 // move bob into fred
2050 // remove fred
2120 mock_server_->AddUpdateDirectory(1024, 0, "fred", 1, 10);
2123 mock_server_->AddUpdateDirectory(7801, 0, "fred", 2, 20);
2129 EXPECT_TRUE("fred" == id1.Get(NON_UNIQUE_NAME));
2143 mock_server_->AddUpdateDirectory(1024, 0, "fred", 1, 10);
2154 EXPECT_TRUE("fred" == id2.Get(NON_UNIQUE_NAME));
2162 mock_server_->AddUpdateDirectory(7801, 0, "fred", 2, 20);
2169 EXPECT_TRUE("fred" == id1.Get(NON_UNIQUE_NAME));
2532 mock_server_->AddUpdateDirectory(2, 0, "fred", 1, 10);
2541 mock_server_->AddUpdateDirectory(2, 1, "fred", 2, 20);
2549 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(2));
2550 ASSERT_TRUE(fred.good());
2551 EXPECT_TRUE(fred.Get(IS_UNSYNCED));
2553 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
2601 "fred", 1, 10);
2611 "fred", 2, 20);
2630 // Reborn fred
2631 Entry fred(&trans, GET_BY_ID, bob.Get(PARENT_ID));
2632 ASSERT_TRUE(fred.good());
2633 EXPECT_TRUE(fred.Get(PARENT_ID) == trans.root_id());
2634 EXPECT_EQ("fred", fred.Get(NON_UNIQUE_NAME));
2635 EXPECT_TRUE(fred.Get(IS_UNSYNCED));
2636 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
2650 mock_server_->AddUpdateDirectory(2, 0, "fred", 1, 10);
2668 mock_server_->AddUpdateDirectory(2, 0, "fred", 2, 20);
2687 GetOnlyEntryWithName(&trans, TestIdFactory::root(), "fred");
2688 Entry fred(&trans, GET_BY_ID, fred_id);
2689 ASSERT_TRUE(fred.good());
2690 EXPECT_FALSE(fred.Get(IS_UNSYNCED));
2691 EXPECT_TRUE(fred.Get(IS_UNAPPLIED_UPDATE));
2692 EXPECT_TRUE(bob.Get(PARENT_ID) == fred.Get(ID));
2708 "fred", 1, 10);
2712 Entry fred(&trans, GET_BY_ID, fred_id);
2713 ASSERT_TRUE(fred.good());
2721 "fred", 2, 20);
2735 // Fred is reborn with a local ID.
2736 Entry fred(&trans, GET_BY_ID, bob.Get(PARENT_ID));
2737 EXPECT_EQ("fred", fred.Get(NON_UNIQUE_NAME));
2738 EXPECT_EQ(TestIdFactory::root(), fred.Get(PARENT_ID));
2739 EXPECT_TRUE(fred.Get(IS_UNSYNCED));
2740 EXPECT_FALSE(fred.Get(ID).ServerKnows());
2744 EXPECT_TRUE(bob.Get(PARENT_ID) == fred.Get(ID));
2745 EXPECT_TRUE(fred.Get(PARENT_ID) == root_id_);
2746 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
2802 "fred", 1, 10);
2806 MutableEntry fred(&trans, GET_BY_ID, fred_id);
2807 ASSERT_TRUE(fred.good());
2808 fred.Put(IS_UNSYNCED, true);
2809 fred.Put(SYNCING, false);
2810 fred.Put(NON_UNIQUE_NAME, "Alice");
2813 "fred", 2, 20);
2861 "fred", 1, 10);
2875 "fred", 2, 20);
2893 Entry fred(&trans, GET_BY_ID, bob.Get(PARENT_ID));
2894 ASSERT_TRUE(fred.good());
2895 EXPECT_TRUE(fred.Get(IS_UNSYNCED));
2896 EXPECT_FALSE(fred.Get(ID).ServerKnows());
2897 EXPECT_EQ("fred", fred.Get(NON_UNIQUE_NAME));
2898 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
2899 EXPECT_TRUE(fred.Get(PARENT_ID) == root_id_);
2903 EXPECT_EQ(new_item.Get(PARENT_ID), fred.Get(ID));
2912 mock_server_->AddUpdateDirectory(2, 0, "fred", 1, 10);
2921 mock_server_->AddUpdateDirectory(2, 1, "fred", 2, 20);
2929 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(2));
2930 ASSERT_TRUE(fred.good());
2931 EXPECT_FALSE(fred.Get(IS_UNSYNCED));
2933 EXPECT_TRUE(fred.Get(PARENT_ID) == bob.Get(ID));
2935 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
2946 mock_server_->AddUpdateDirectory(2, 0, "fred", 1, 10);
2956 mock_server_->AddUpdateDirectory(2, 1, "fred", 2, 20);
2964 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(2));
2965 ASSERT_TRUE(fred.good());
2966 EXPECT_TRUE(fred.Get(IS_UNSYNCED));
2969 EXPECT_TRUE(fred.Get(PARENT_ID) == root_id_);
2970 EXPECT_TRUE(bob.Get(PARENT_ID) == fred.Get(ID));
2971 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
2989 mock_server_->AddUpdateDirectory(2, 1, "fred", 2, 20);
2997 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(2));
2998 ASSERT_TRUE(fred.good());
2999 EXPECT_FALSE(fred.Get(IS_UNSYNCED));
3001 EXPECT_TRUE(fred.Get(PARENT_ID) == bob.Get(ID));
3003 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
3026 mock_server_->AddUpdateDirectory(3, 2, "fred", 2, 20);
3036 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(3));
3037 ASSERT_TRUE(fred.good());
3038 EXPECT_FALSE(fred.Get(IS_UNSYNCED));
3041 EXPECT_TRUE(fred.Get(PARENT_ID) == joe.Get(ID));
3044 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
3071 mock_server_->AddUpdateDirectory(3, 2, "fred", 2, 20);
3081 Entry fred(&trans, GET_BY_ID, ids_.FromNumber(3));
3082 ASSERT_TRUE(fred.good());
3086 EXPECT_FALSE(fred.Get(IS_UNSYNCED));
3089 EXPECT_EQ(fred.Get(PARENT_ID), joe.Get(ID));
3094 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
3158 mock_server_->AddUpdateDirectory(fred_id, joe_id, "fred", 2, 20);
3172 Entry fred(&trans, GET_BY_ID, fred_id);
3173 ASSERT_TRUE(fred.good());
3177 EXPECT_TRUE(fred.Get(IS_UNAPPLIED_UPDATE));
3181 EXPECT_FALSE(fred.Get(IS_UNSYNCED));
3196 Entry fred(&trans, GET_BY_ID, fred_id);
3197 ASSERT_TRUE(fred.good());
3201 EXPECT_FALSE(fred.Get(IS_UNSYNCED));
3204 EXPECT_TRUE(fred.Get(PARENT_ID) == joe.Get(ID));
3209 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
3227 "fred", 1, 10);
3238 "fred", 2, 20);
3273 Entry fred(&trans, GET_BY_ID, alice.Get(PARENT_ID));
3274 ASSERT_TRUE(fred.good());
3275 EXPECT_EQ(fred.Get(PARENT_ID), TestIdFactory::root());
3276 EXPECT_TRUE(fred.Get(IS_UNSYNCED));
3277 EXPECT_FALSE(fred.Get(ID).ServerKnows());
3278 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
3279 EXPECT_TRUE(fred.Get(NON_UNIQUE_NAME) == "fred");
3299 mock_server_->AddUpdateDirectory(fred_id, susan_id, "fred", 1, 10);
3310 "fred", 2, 20);
3321 // |- Fred
3341 EXPECT_NE(alice.Get(PARENT_ID), fred_id); // This fred was deleted
3348 Entry fred(&trans, GET_BY_ID, alice.Get(PARENT_ID));
3349 EXPECT_TRUE(fred.Get(IS_UNSYNCED));
3350 EXPECT_FALSE(fred.Get(IS_UNAPPLIED_UPDATE));
3351 EXPECT_FALSE(fred.Get(ID).ServerKnows());
3352 EXPECT_TRUE(fred.Get(PARENT_ID) == susan_id);
3376 MutableEntry folder2(&trans, CREATE, trans.root_id(), "fred");
3408 mock_server_->AddUpdateDirectory(2, 1, "fred", 1, 10);