Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: remoting/protocol/connection_to_client_unittest.cc

Issue 8495024: Access ChromotingHost::clients_ only on network thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/connection_to_client.cc ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « remoting/protocol/connection_to_client.cc ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698