Index: remoting/protocol/connection_to_client_unittest.cc |
diff --git a/remoting/protocol/connection_to_client_unittest.cc b/remoting/protocol/connection_to_client_unittest.cc |
index d3d1aedac4d9f256b3598110bec63d48112023d7..81ea1f0e79b55e19f0a0ffe5ea7bc036e85343da 100644 |
--- a/remoting/protocol/connection_to_client_unittest.cc |
+++ b/remoting/protocol/connection_to_client_unittest.cc |
@@ -43,6 +43,11 @@ class ConnectionToClientTest : public testing::Test { |
message_loop_.RunAllPending(); |
} |
+ virtual void TearDown() OVERRIDE { |
+ viewer_ = NULL; |
+ message_loop_.RunAllPending(); |
+ } |
+ |
MessageLoop message_loop_; |
MockConnectionToClientEventHandler handler_; |
MockHostStub host_stub_; |
@@ -101,13 +106,5 @@ TEST_F(ConnectionToClientTest, StateChange) { |
message_loop_.RunAllPending(); |
} |
-// Test that we can close client connection more than once. |
-TEST_F(ConnectionToClientTest, Close) { |
- viewer_->Disconnect(); |
- message_loop_.RunAllPending(); |
- viewer_->Disconnect(); |
- message_loop_.RunAllPending(); |
-} |
- |
} // namespace protocol |
} // namespace remoting |