Home | History | Annotate | Download | only in base

Lines Matching refs:Connection

452     // Removed remote_type comparision aginst best connection remote
527 // Verifying remote channel best connection information. This is done
532 // Checking for best connection candidates information at remote.
574 // new connection using the newly generated ice candidates.
962 // different expectation of the best connection. For example in the OpenToCONE
1153 // Test that we properly create a connection on a STUN ping from unknown address
1168 // The caller should have the best connection connected to the peer reflexive
1170 const cricket::Connection* best_connection = NULL;
1188 // Verify ep1's best connection is updated to use the 'local' candidate.
1197 // Test that we properly create a connection on a STUN ping from unknown address
1211 // The caller should have the best connection connected to the peer reflexive
1229 const cricket::Connection* best_connection = NULL;
1232 // Wait to verify the connection is not culled.
1245 const cricket::Connection* best_connection = NULL;
1414 // Verify IPv6 connection is preferred over IPv4.
1581 const cricket::Connection* best_connection1 = ep1_ch1()->best_connection();
1582 const cricket::Connection* best_connection2 = ep2_ch1()->best_connection();
1633 const cricket::Connection* best_connection1 = ep1_ch1()->best_connection();
1634 const cricket::Connection* best_connection2 = ep2_ch1()->best_connection();
1653 // Test that the backup connection is pinged at a rate no faster than
1673 // After the state becomes COMPLETED, the backup connection will be pinged
1676 const std::vector<cricket::Connection*>& connections =
1679 cricket::Connection* backup_conn = connections[1];
1781 cricket::Connection* WaitForConnectionTo(cricket::P2PTransportChannel* ch,
1795 cricket::Connection* GetConnectionTo(cricket::P2PTransportChannel* ch,
1820 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
1821 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
1825 // Before a triggered check, the first connection to ping is the
1845 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
1846 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
1855 // Ping received, but the connection is already writable, so no
1875 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
1890 // Add a candidate with an old ufrag. No connection will be created.
1898 cricket::Connection* conn3 = nullptr;
1919 cricket::P2PTransportChannel ch("connection resurrection", 1, nullptr, &pa);
1926 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
1930 // Create a higher priority candidate and make the connection
1933 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
1940 // Destroy the connection to test SignalUnknownAddress.
1962 // conn3, a real prflx connection, should have prflx priority.
1965 cricket::Connection* conn3 = WaitForConnectionTo(&ch, "3.3.3.3", 1);
1984 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
1994 // The controlled side will select a connection as the "best connection" based
1995 // on priority until the controlling side nominates a connection, at which
1996 // point the controlled side will select that connection as the
1997 // "best connection".
2006 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
2010 // When a higher priority candidate comes in, the new connection is chosen
2011 // as the best connection.
2013 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
2018 // connection will be set as the best connection, even though
2021 cricket::Connection* conn3 = WaitForConnectionTo(&ch, "3.3.3.3", 3);
2023 // Because it has a lower priority, the best connection is still conn2.
2027 // connection.
2033 // it will not be set as the best connection because the best connection
2036 cricket::Connection* conn4 = WaitForConnectionTo(&ch, "4.4.4.4", 4);
2040 // the best connection.
2045 // The best connection switches after conn4 becomes writable.
2050 // The controlled side will select a connection as the "best connection" based
2052 // a connection, and will nominate a connection from an unknown address if the
2073 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
2081 // Another connection is nominated via use_candidate.
2083 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
2085 // Because it has a lower priority, the best connection is still conn1.
2088 // best connection.
2095 // connection because the best connection was nominated by the controlling
2099 cricket::Connection* conn3 = WaitForConnectionTo(&ch, "3.3.3.3", 3);
2107 // selected as the best connection.
2112 cricket::Connection* conn4 = WaitForConnectionTo(&ch, "4.4.4.4", 4);
2115 // conn4 is not the best connection yet because it is not writable.
2127 cricket::Connection* conn5 = WaitForConnectionTo(&ch, "5.5.5.5", 5);
2133 // The controlled side will select a connection as the "best connection"
2134 // based on media received until the controlling side nominates a connection,
2135 // at which point the controlled side will select that connection as
2136 // the "best connection".
2145 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
2149 // If a data packet is received on conn2, the best connection should
2153 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
2166 // nominate the best connection.
2179 cricket::Connection* conn3 = WaitForConnectionTo(&ch, "3.3.3.3", 3);
2185 // Now another data packet will not switch the best connection because the
2186 // best connection was nominated by the controlling side.
2193 // When the current best connection is strong, lower-priority connections will
2203 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
2211 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
2223 cricket::Connection* conn3 = WaitForConnectionTo(&ch, "3.3.3.3", 3);
2225 // The best connection should still be conn2. Even through conn3 has lower
2227 // connection is not receiving.
2242 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
2243 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
2258 // Test that when a low-priority connection is pruned, it is not deleted
2268 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
2273 // Add a low-priority connection |conn2|, which will be pruned, but it will
2274 // not be deleted right away. Once the current best connection becomes not
2276 // it will become the best connection.
2278 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
2282 EXPECT_EQ(cricket::Connection::STATE_WAITING, conn2->state());
2289 EXPECT_EQ_WAIT(cricket::Connection::STATE_INPROGRESS, conn2->state(), 1000);
2309 // Have one connection only but later becomes write-time-out.
2311 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
2319 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);
2323 cricket::Connection* conn3 = WaitForConnectionTo(&ch, "3.3.3.3", 3);
2333 // when a new connection becomes writable and receiving. Also test that this
2343 cricket::Connection* conn1 = WaitForConnectionTo(&ch, "1.1.1.1", 1);
2349 // It should stop getting ports after a new connection becomes strongly
2354 cricket::Connection* conn2 = WaitForConnectionTo(&ch, "2.2.2.2", 2);