Lines Matching full:navigation_state
22 FrameNavigationState navigation_state;
29 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id1));
30 navigation_state.TrackFrame(frame_id1, url1, true, false, contents());
31 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id1));
34 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id2));
35 navigation_state.TrackFrame(frame_id2, url2, false, false, contents());
36 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id2));
39 EXPECT_TRUE(navigation_state.IsMainFrame(frame_id1));
40 EXPECT_EQ(url1, navigation_state.GetUrl(frame_id1));
41 EXPECT_FALSE(navigation_state.IsMainFrame(frame_id2));
42 EXPECT_EQ(url2, navigation_state.GetUrl(frame_id2));
46 navigation_state.RemoveTabContentsState(contents());
47 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id1));
48 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id2));
54 FrameNavigationState navigation_state;
58 navigation_state.TrackFrame(frame_id, url, true, false, contents());
59 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id));
62 navigation_state.ErrorOccurredInFrame(frame_id);
63 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id));
66 navigation_state.TrackFrame(frame_id, GURL(), true, true, contents());
67 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id));
70 navigation_state.TrackFrame(frame_id, url, true, false, contents());
71 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id));
77 FrameNavigationState navigation_state;
82 navigation_state.TrackFrame(frame_id1, url, true, false, contents());
83 navigation_state.TrackFrame(frame_id2, url, false, false, contents());
84 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id1));
85 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id2));
88 navigation_state.ErrorOccurredInFrame(frame_id2);
89 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id1));
90 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id2));
93 navigation_state.TrackFrame(frame_id2, GURL(), false, true, contents());
94 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id1));
95 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id2));
98 navigation_state.TrackFrame(frame_id2, url, false, false, contents());
99 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id1));
100 EXPECT_TRUE(navigation_state.CanSendEvents(frame_id2));
105 FrameNavigationState navigation_state;
109 navigation_state.TrackFrame(frame_id, url, true, false, contents());
110 EXPECT_FALSE(navigation_state.CanSendEvents(frame_id));