Skip to content
Snippets Groups Projects
Commit b47c0ebf authored by sergeyu@chromium.org's avatar sergeyu@chromium.org
Browse files

Fixed memory leaks in new unittests

TEST=heapcheck with remoting_unittest
BUG=None
TBR: ajwong

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55003 0039d316-1c4b-4281-b951-d872f2087c98
parent 5929dd2a
No related branches found
No related tags found
No related merge requests found
......@@ -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_);
......
......@@ -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_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment