diff options
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/heartbeat_sender_unittest.cc | 3 | ||||
-rw-r--r-- | remoting/host/host_key_pair_unittest.cc | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/remoting/host/heartbeat_sender_unittest.cc b/remoting/host/heartbeat_sender_unittest.cc index 6ac2037..f5877e1 100644 --- a/remoting/host/heartbeat_sender_unittest.cc +++ b/remoting/host/heartbeat_sender_unittest.cc @@ -72,6 +72,9 @@ class HeartbeatSenderTest : public testing::Test { NewRunnableMethod(config_updater.get(), &TestConfigUpdater::DoUpdate, config_)); + // Run the message loop to save new config. + message_loop_.RunAllPending(); + jingle_thread_.message_loop_ = &message_loop_; jingle_client_ = new MockJingleClient(&jingle_thread_); diff --git a/remoting/host/host_key_pair_unittest.cc b/remoting/host/host_key_pair_unittest.cc index e5af756..c5d525e 100644 --- a/remoting/host/host_key_pair_unittest.cc +++ b/remoting/host/host_key_pair_unittest.cc @@ -52,6 +52,8 @@ TEST_F(HostKeyPairTest, SaveLoad) { exported_key.LoadFromString(kTestHostKeyPair); exported_key.Save(config_); + message_loop_.RunAllPending(); + HostKeyPair imported_key; imported_key.Load(config_); |