Lines Matching refs:Connection
30 class MockParentDelegate : public Connection::ParentDelegate {
35 MOCK_METHOD2(CloseConnection, Error(Connection*, Connection::CloseReason));
38 MOCK_METHOD1(OnConnectionDestroyed, void(Connection*));
106 Connection controller(Connection::PresentationInfo{id, url}, in TEST_F()
108 Connection receiver(Connection::PresentationInfo{id, url}, in TEST_F()
118 [&receiver](Connection* connection, Connection::CloseReason reason) { in TEST_F()
129 .WillByDefault(Invoke([&controller](Connection* connection, in TEST_F()
130 Connection::CloseReason reason) { in TEST_F()
140 EXPECT_EQ(Connection::State::kConnecting, controller.state()); in TEST_F()
141 EXPECT_EQ(Connection::State::kConnecting, receiver.state()); in TEST_F()
175 EXPECT_EQ(Connection::State::kConnected, controller.state()); in TEST_F()
176 EXPECT_EQ(Connection::State::kConnected, receiver.state()); in TEST_F()
219 receiver.Close(Connection::CloseReason::kClosed); in TEST_F()
221 EXPECT_EQ(Connection::State::kClosed, controller.state()); in TEST_F()
222 EXPECT_EQ(Connection::State::kClosed, receiver.state()); in TEST_F()