Home | History | Annotate | Download | only in sessions

Lines Matching refs:tab

82   virtual bool IsTabPinned(const SyncedTabDelegate* tab) const OVERRIDE {
83 return wrapped_->IsTabPinned(tab);
465 SyncedTabDelegateFake tab;
468 tab.AppendEntry(NULL);
469 EXPECT_FALSE(sessions_util::ShouldSyncTab(tab));
470 tab.reset();
475 tab.AppendEntry(entry);
476 EXPECT_FALSE(sessions_util::ShouldSyncTab(tab));
482 tab.AppendEntry(entry2);
483 EXPECT_FALSE(sessions_util::ShouldSyncTab(tab));
485 // Add a valid scheme entry to tab, making the tab valid.
488 tab.AppendEntry(entry3);
489 EXPECT_FALSE(sessions_util::ShouldSyncTab(tab));
495 SyncedTabDelegateFake tab;
498 tab.AppendEntry(entry);
499 EXPECT_EQ(entry->GetVirtualURL(), manager()->GetCurrentVirtualURL(tab));
505 SyncedTabDelegateFake tab;
508 tab.AppendEntry(entry);
509 EXPECT_EQ(entry->GetVirtualURL(), manager()->GetCurrentVirtualURL(tab));
523 // Populate the mock tab delegate with some data and navigation
527 // Create a tab with three valid entries.
528 SyncedTabDelegateFake tab;
542 tab.AppendEntry(entry1);
543 tab.AppendEntry(entry2);
544 tab.AppendEntry(entry3);
545 tab.set_current_entry_index(2);
560 manager()->SetSessionTabFromDelegate(tab, kTime4, &session_tab);
595 SyncedTabDelegateFake tab;
637 tab.AppendEntry(entry0);
638 tab.AppendEntry(entry1);
639 tab.AppendEntry(entry2);
640 tab.AppendEntry(entry3);
641 tab.AppendEntry(entry4);
642 tab.AppendEntry(entry5);
643 tab.AppendEntry(entry6);
644 tab.AppendEntry(entry7);
645 tab.AppendEntry(entry8);
646 tab.AppendEntry(entry9);
647 tab.set_current_entry_index(8);
650 manager()->SetSessionTabFromDelegate(tab, kTime9, &session_tab);
665 SyncedTabDelegateFake tab;
683 tab.AppendEntry(entry0);
684 tab.AppendEntry(entry1);
685 tab.AppendEntry(entry2);
686 tab.AppendEntry(entry3);
687 tab.set_current_entry_index(1);
690 manager()->SetSessionTabFromDelegate(tab, kTime9, &session_tab);
699 SyncedTabDelegateFake tab;
703 tab.AppendEntry(entry1);
715 tab.set_is_supervised(true);
716 tab.set_blocked_navigations(&blocked_navigations.get());
731 manager()->SetSessionTabFromDelegate(tab, kTime4, &session_tab);
830 // Should be one header add, 3 tab add/update pairs, one header update.
834 // * one "normal" fully loaded tab
835 // * one "frozen" tab with no WebContents and a tab_id change
836 // * one "frozen" tab with no WebContents and no tab_id change
872 t2.GetSpecifics().session().tab().tab_id());
886 tab, and
892 out[1].sync_data().GetSpecifics().session().tab().tab_id());
897 int t2_tab_id = t2.GetSpecifics().session().tab().tab_id();
900 int t0_tab_id = out[0].sync_data().GetSpecifics().session().tab().tab_id();
903 // from here (using an override similar to above) to return a new tab id
1003 // Verify the tab node creations and updates with content.
1119 // Remove a tab from a window.
1227 // Add a second window, but this time only create two tab nodes, despite the
1299 // AddTab triggers two notifications, one for the tab insertion and one for
1300 // committing the NavigationEntry. The first notification results in a tab
1302 // notification triggers association of the tab, and the subsequent window
1324 out[2].sync_data().GetSpecifics().session().tab();
1335 int tab_id = out[2].sync_data().GetSpecifics().session().tab().tab_id();
1378 // will be deleted before being added to the tab node pool.
1423 // Test that things work if a tab is initially ignored.
1438 EXPECT_EQ(3U, out.size()); // Tab add, update, and header update.
1470 // Tests that the SyncSessionManager responds to local tab events properly.
1493 // = 6 total tab updates.
1499 // Verify the tab node creations and updates to ensure the SyncProcessor
1510 // First thing on an AddTab is a no-op header update for parented tab.
1516 // Next, the TabNodePool should create the tab node.
1523 // Then we see the tab update to the URL.
1535 // Now we move on to NavigateAndCommit. Update the tab.
1557 // Verify first tab.
1559 out[2].sync_data().GetSpecifics().session().tab();
1563 out[4].sync_data().GetSpecifics().session().tab();
1568 // Verify second tab.
1570 out[8].sync_data().GetSpecifics().session().tab();
1574 out[10].sync_data().GetSpecifics().session().tab();
1609 // Verify the tab node creations and updates with content.
1643 ASSERT_EQ(2, iter->second->tab()->GetEntryCount());
1644 EXPECT_EQ(GURL("http://foo1"), iter->second->tab()->
1646 EXPECT_EQ(GURL("http://foo2"), iter->second->tab()->
1649 ASSERT_EQ(2, iter->second->tab()->GetEntryCount());
1650 EXPECT_EQ(GURL("http://bar1"), iter->second->tab()->
1652 EXPECT_EQ(GURL("http://bar2"), iter->second->tab()->
1781 // Test that swapping WebContents for a tab is properly observed and handled
1789 ASSERT_EQ(4U, out.size()); // Header, tab ADD, tab UPDATE, header UPDATE.
1796 // Create new WebContents, with the required tab helpers.
1822 // didn't properly clean up the tab pool or session tracker.
1935 // Tests receipt of duplicate tab IDs in the same window. This should never
1941 // Reuse tab ID 10 in an attempt to trigger bad behavior.
1964 // Tests receipt of duplicate tab IDs for the same session. The duplicate tab
1977 // Add a second window. Tab ID 10 is a duplicate.